From f009802771a9a0eec3ce84abee9fd207acfb0213 Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Mon, 7 Dec 2020 09:56:26 +0000 Subject: [PATCH] play: Flush API bus before exiting main loop Otherwise the bus might attempt to dispatch queued messages after the thread ended, causing runtime warnings. Part-of: --- gst-libs/gst/play/gstplay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/play/gstplay.c b/gst-libs/gst/play/gstplay.c index 6229439..ed33dff 100644 --- a/gst-libs/gst/play/gstplay.c +++ b/gst-libs/gst/play/gstplay.c @@ -445,6 +445,8 @@ gst_play_dispose (GObject * object) GST_TRACE_OBJECT (self, "Stopping main thread"); + gst_bus_set_flushing (self->api_bus, TRUE); + if (self->loop) { g_main_loop_quit (self->loop); -- 2.7.4