[PATCH] winegstreamer: Kill thread on disconnect
Maarten Lankhorst
m.b.lankhorst at gmail.com
Sat Dec 4 04:24:55 CST 2010
---
dlls/winegstreamer/gstdemux.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index ba96789..403f945 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -1564,6 +1564,8 @@ static HRESULT GST_RemoveOutputPins(GSTImpl *This) {
gst_element_set_bus(This->gstfilter, NULL);
gst_element_set_state(This->gstfilter, GST_STATE_NULL);
gst_pad_unlink(This->my_src, This->their_sink);
+ if (This->push_thread)
+ gst_pad_activate_push(This->my_src, 0);
gst_object_unref(This->my_src);
This->my_src = This->their_sink = NULL;
--
1.7.1
More information about the wine-patches
mailing list