Commit 079d63e6 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

winegstreamer: Hold a reference to the filter in push_data().

parent 83c806ed
......@@ -510,6 +510,8 @@ static DWORD CALLBACK push_data(LPVOID iface)
DWORD_PTR user;
HRESULT hr;
IBaseFilter_AddRef(&This->filter.IBaseFilter_iface);
if (!This->stop)
IAsyncReader_Length(This->pInputPin.pReader, &maxlen, &curlen);
else
......@@ -589,6 +591,9 @@ static DWORD CALLBACK push_data(LPVOID iface)
} while (buf);
TRACE("Stopping.. %08x\n", hr);
IBaseFilter_Release(&This->filter.IBaseFilter_iface);
return 0;
}
......
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