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

Zebediah Figura z.figura12 at gmail.com
Tue Dec 19 20:49:20 CST 2017


Fixes bug #43004.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
This fixes a regression probably introduced by 38586dcf48bf38c136ea315fd9d83a1be56483b1.

 dlls/winegstreamer/gstdemux.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 95a1630..a19c64f 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -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;
 }
 
-- 
2.7.4




More information about the wine-devel mailing list