Commit 18057212 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

mf: Return MF_E_NO_MORE_TYPE from AudioRenderer GetMediaTypeByIndex.

parent 3dbb6c74
...@@ -1531,12 +1531,11 @@ static HRESULT WINAPI audio_renderer_stream_type_handler_GetMediaTypeByIndex(IMF ...@@ -1531,12 +1531,11 @@ static HRESULT WINAPI audio_renderer_stream_type_handler_GetMediaTypeByIndex(IMF
TRACE("%p, %lu, %p.\n", iface, index, media_type); TRACE("%p, %lu, %p.\n", iface, index, media_type);
if (index == 0) if (index > 0)
{ return MF_E_NO_MORE_TYPES;
*media_type = renderer->media_type; *media_type = renderer->media_type;
IMFMediaType_AddRef(*media_type); IMFMediaType_AddRef(*media_type);
}
return S_OK; return S_OK;
} }
......
...@@ -4636,7 +4636,6 @@ if (SUCCEEDED(hr)) ...@@ -4636,7 +4636,6 @@ if (SUCCEEDED(hr))
ok(!!count, "Unexpected type count %lu.\n", count); ok(!!count, "Unexpected type count %lu.\n", count);
hr = IMFMediaTypeHandler_GetMediaTypeByIndex(handler, count, &mediatype); hr = IMFMediaTypeHandler_GetMediaTypeByIndex(handler, count, &mediatype);
todo_wine
ok(hr == MF_E_NO_MORE_TYPES, "Unexpected hr %#lx.\n", hr); ok(hr == MF_E_NO_MORE_TYPES, "Unexpected hr %#lx.\n", hr);
hr = IMFMediaTypeHandler_GetMediaTypeByIndex(handler, 0, &mediatype); hr = IMFMediaTypeHandler_GetMediaTypeByIndex(handler, 0, &mediatype);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment