From: Sebastian Dröge Date: Sat, 11 Nov 2023 12:10:37 +0000 (+0200) Subject: play: Automatically flush the bus when disposing the signal adapter X-Git-Tag: 1.22.8~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc1dc56c2d2b97839f4f52a11622ee7c8d6b308d;p=platform%2Fupstream%2Fgstreamer.git play: Automatically flush the bus when disposing the signal adapter See https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3107 Part-of: --- diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/play/gstplay-signal-adapter.c b/subprojects/gst-plugins-bad/gst-libs/gst/play/gstplay-signal-adapter.c index fe02e03908..53fc98bab7 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/play/gstplay-signal-adapter.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/play/gstplay-signal-adapter.c @@ -356,6 +356,8 @@ gst_play_signal_adapter_dispose (GObject * object) self->source = NULL; } + if (self->bus) + gst_bus_set_flushing (self->bus, TRUE); gst_clear_object (&self->bus); G_OBJECT_CLASS (parent_class)->dispose (object);