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

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-11-18 18:51:22 -06:00 committed by Alexandre Julliard
parent 2a6037e263
commit 31bd0a6abb
1 changed files with 3 additions and 6 deletions

View File

@ -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)