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

Alexandre Julliard julliard at winehq.org
Sun Mar 18 09:02:33 CDT 2018


Module: wine
Branch: oldstable
Commit: c4cf5980220c8624bb80de926ab210cb0ff70429
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=c4cf5980220c8624bb80de926ab210cb0ff70429

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Tue Dec 19 20:49:20 2017 -0600

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

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 079d63e66c9f00030c94a5cc5e821ea898e83c98)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

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

diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 759a5db..eb6fca5 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;
 }
 




More information about the wine-cvs mailing list