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 fe02e0390870e7a731c4e9263218bbe02902861b..53fc98bab7ddb8fed193ef399afd5223f9de5549 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);