Christian Costa : amstream: Fix return value of BasePinImp_GetMediaType.
Alexandre Julliard
julliard at winehq.org
Tue Nov 27 14:30:51 CST 2012
Module: wine
Branch: master
Commit: eca0bc35656fef9f0e9179cfe5fec3074d8cbe9a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=eca0bc35656fef9f0e9179cfe5fec3074d8cbe9a
Author: Christian Costa <titan.costa at gmail.com>
Date: Tue Nov 27 09:14:13 2012 +0100
amstream: Fix return value of BasePinImp_GetMediaType.
---
dlls/amstream/mediastreamfilter.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/dlls/amstream/mediastreamfilter.c b/dlls/amstream/mediastreamfilter.c
index 3c0777c..afd080a 100644
--- a/dlls/amstream/mediastreamfilter.c
+++ b/dlls/amstream/mediastreamfilter.c
@@ -181,15 +181,14 @@ static HRESULT WINAPI BasePinImp_GetMediaType(BasePin *This, int index, AM_MEDIA
}
else if (IsEqualGUID(&purpose_id, &MSPID_PrimaryAudio))
{
- if (!index)
- {
- amt->majortype = MEDIATYPE_Audio;
- amt->subtype = MEDIASUBTYPE_PCM;
- return S_OK;
- }
+ if (index)
+ return S_FALSE;
+
+ amt->majortype = MEDIATYPE_Audio;
+ amt->subtype = MEDIASUBTYPE_PCM;
}
- return S_FALSE;
+ return S_OK;
}
static const BasePinFuncTable input_BaseFuncTable = {
More information about the wine-cvs
mailing list