forked from Mirrors/wine-wine
qedit/mediadet: Check for failure from IEnumPins::Next().
Fixes a test crash when gstreamer is not present.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 9defa529fc
)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
oldstable
parent
a6dde4d38b
commit
1c47ee7afa
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue