winegstreamer: Clear the "reader" and "allocator" fields if connection fails.
This fixes a regression introduced by dafe81dfcb
.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
18c3c2c78b
commit
15e3adab4c
|
@ -1393,6 +1393,8 @@ static HRESULT gstdemux_sink_connect(struct strmbase_sink *iface, IPin *peer, co
|
||||||
if (FAILED(hr = IMemAllocator_Commit(filter->alloc)))
|
if (FAILED(hr = IMemAllocator_Commit(filter->alloc)))
|
||||||
{
|
{
|
||||||
WARN("Failed to commit allocator, hr %#x.\n", hr);
|
WARN("Failed to commit allocator, hr %#x.\n", hr);
|
||||||
|
IMemAllocator_Release(filter->alloc);
|
||||||
|
filter->alloc = NULL;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1400,6 +1402,7 @@ static HRESULT gstdemux_sink_connect(struct strmbase_sink *iface, IPin *peer, co
|
||||||
err:
|
err:
|
||||||
GST_RemoveOutputPins(filter);
|
GST_RemoveOutputPins(filter);
|
||||||
IAsyncReader_Release(filter->reader);
|
IAsyncReader_Release(filter->reader);
|
||||||
|
filter->reader = NULL;
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue