summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorPhilippe Normand <philn@igalia.com>2020-12-07 09:56:26 +0000
committerPhilippe Normand <philn@igalia.com>2021-03-09 18:03:48 +0000
commitf009802771a9a0eec3ce84abee9fd207acfb0213 (patch)
tree53a39f12857f37fc1abebf6f92fbd460ec7cbcf6 /gst-libs
parentfae7c8dd7e1780d05f2c101dca72a45906a44df9 (diff)
downloadgstreamer-plugins-bad-f009802771a9a0eec3ce84abee9fd207acfb0213.tar.gz
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2061>
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/play/gstplay.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/play/gstplay.c b/gst-libs/gst/play/gstplay.c
index 62294392d..ed33dff49 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);