Commit 3e8b14ad authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mfreadwrite: Output warning for uninitialized stream descriptor.

parent eb508e5a
......@@ -727,7 +727,13 @@ static DWORD reader_get_first_stream_index(IMFPresentationDescriptor *descriptor
{
hr = IMFMediaTypeHandler_GetMajorType(handler, &guid);
IMFMediaTypeHandler_Release(handler);
if (SUCCEEDED(hr) && IsEqualGUID(&guid, major))
if (FAILED(hr))
{
WARN("Failed to get stream major type, hr %#x.\n", hr);
continue;
}
if (IsEqualGUID(&guid, major))
{
return i;
}
......
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