play: Automatically flush the bus when disposing the signal adapter
authorSebastian Dröge <sebastian@centricular.com>
Sat, 11 Nov 2023 12:10:37 +0000 (14:10 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 13 Nov 2023 16:33:03 +0000 (16:33 +0000)
See https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3107

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5653>

subprojects/gst-plugins-bad/gst-libs/gst/play/gstplay-signal-adapter.c

index fe02e03..53fc98b 100644 (file)
@@ -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);