From: R��mi Bernon rbernon@codeweavers.com
--- dlls/mf/sar.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/dlls/mf/sar.c b/dlls/mf/sar.c index b22a3a53479..e57613ba016 100644 --- a/dlls/mf/sar.c +++ b/dlls/mf/sar.c @@ -1531,12 +1531,11 @@ static HRESULT WINAPI audio_renderer_stream_type_handler_GetMediaTypeByIndex(IMF
TRACE("%p, %lu, %p.\n", iface, index, media_type);
- if (index == 0) - { - *media_type = renderer->media_type; - IMFMediaType_AddRef(*media_type); - } + if (index > 0) + return MF_E_NO_MORE_TYPES;
+ *media_type = renderer->media_type; + IMFMediaType_AddRef(*media_type); return S_OK; }