amstream: Fix return value of BasePinImp_GetMediaType.
This commit is contained in:
parent
ab2cac4815
commit
eca0bc3565
|
@ -181,15 +181,14 @@ static HRESULT WINAPI BasePinImp_GetMediaType(BasePin *This, int index, AM_MEDIA
|
||||||
}
|
}
|
||||||
else if (IsEqualGUID(&purpose_id, &MSPID_PrimaryAudio))
|
else if (IsEqualGUID(&purpose_id, &MSPID_PrimaryAudio))
|
||||||
{
|
{
|
||||||
if (!index)
|
if (index)
|
||||||
{
|
return S_FALSE;
|
||||||
amt->majortype = MEDIATYPE_Audio;
|
|
||||||
amt->subtype = MEDIASUBTYPE_PCM;
|
amt->majortype = MEDIATYPE_Audio;
|
||||||
return S_OK;
|
amt->subtype = MEDIASUBTYPE_PCM;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return S_FALSE;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const BasePinFuncTable input_BaseFuncTable = {
|
static const BasePinFuncTable input_BaseFuncTable = {
|
||||||
|
|
Loading…
Reference in New Issue