play: Flush API bus before exiting main loop
authorPhilippe Normand <philn@igalia.com>
Mon, 7 Dec 2020 09:56:26 +0000 (09:56 +0000)
committerPhilippe Normand <philn@igalia.com>
Tue, 9 Mar 2021 18:03:48 +0000 (18:03 +0000)
commitf009802771a9a0eec3ce84abee9fd207acfb0213
tree53a39f12857f37fc1abebf6f92fbd460ec7cbcf6
parentfae7c8dd7e1780d05f2c101dca72a45906a44df9
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>
gst-libs/gst/play/gstplay.c