amstream: Fix return value of BasePinImp_GetMediaType.

This commit is contained in:
Christian Costa 2012-11-27 09:14:13 +01:00 committed by Alexandre Julliard
parent ab2cac4815
commit eca0bc3565
1 changed files with 6 additions and 7 deletions

View File

@ -181,15 +181,14 @@ static HRESULT WINAPI BasePinImp_GetMediaType(BasePin *This, int index, AM_MEDIA
}
else if (IsEqualGUID(&purpose_id, &MSPID_PrimaryAudio))
{
if (!index)
{
if (index)
return S_FALSE;
amt->majortype = MEDIATYPE_Audio;
amt->subtype = MEDIASUBTYPE_PCM;
return S_OK;
}
}
return S_FALSE;
return S_OK;
}
static const BasePinFuncTable input_BaseFuncTable = {