Commit 9defa529 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

qedit/mediadet: Check for failure from IEnumPins::Next().

Fixes a test crash when gstreamer is not present. Signed-off-by: 's avatarZebediah Figura <z.figura12@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent b796b9fb
......@@ -456,7 +456,12 @@ static HRESULT GetSplitter(MediaDetImpl *This)
IPin_Release(source_pin);
goto retry;
}
IEnumPins_Next(pins, 1, &splitter_pin, NULL);
if (IEnumPins_Next(pins, 1, &splitter_pin, NULL) != S_OK)
{
IEnumPins_Release(pins);
IPin_Release(source_pin);
goto retry;
}
IEnumPins_Release(pins);
hr = IPin_Connect(source_pin, splitter_pin, NULL);
......
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