From a238caebbbdcbfd5e9ba780badcf6ca53d7e6da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 11 Nov 2023 14:10:37 +0200 Subject: [PATCH] play: Automatically flush the bus when disposing the signal adapter See https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3107 Part-of: --- .../gst-plugins-bad/gst-libs/gst/play/gstplay-signal-adapter.c | 2 ++ 1 file changed, 2 insertions(+) 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);