mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
mfreadwrite: Output warning for uninitialized stream descriptor.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
eb508e5a01
commit
3e8b14adb3
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue