Commit 31bd0a6a authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wineqtdecoder: Simplify disconnecting the sink's peer in qt_splitter_destroy().

parent 2a6037e2
......@@ -234,12 +234,9 @@ static void qt_splitter_destroy(struct strmbase_filter *iface)
EnterCriticalSection(&filter->csReceive);
/* Don't need to clean up output pins, disconnecting input pin will do that */
IPin_ConnectedTo(&filter->pInputPin.pin.IPin_iface, &peer);
if (peer)
{
IPin_Disconnect(peer);
IPin_Release(peer);
}
if (filter->pInputPin.pin.peer)
IPin_Disconnect(filter->pInputPin.pin.peer);
FreeMediaType(&filter->pInputPin.pin.mt);
if (filter->pInputPin.pAlloc)
......
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