Module: wine Branch: master Commit: bd4083bd63433e0ededac56db7c90b3b50d0c632 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bd4083bd63433e0ededac56db7...
Author: Maarten Lankhorst m.b.lankhorst@gmail.com Date: Sat Dec 4 11:24:55 2010 +0100
winegstreamer: Kill thread on disconnect.
---
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;