From: Philippe Normand Date: Mon, 7 Dec 2020 09:56:26 +0000 (+0000) Subject: play: Flush API bus before exiting main loop X-Git-Tag: 1.19.3~507^2~728 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f009802771a9a0eec3ce84abee9fd207acfb0213;p=platform%2Fupstream%2Fgstreamer.git 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: --- 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);