play: Automatically flush the bus when disposing the signal adapter

See https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3107

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5642>
This commit is contained in:
Sebastian Dröge 2023-11-11 14:10:37 +02:00
parent 66373721d5
commit a238caebbb

View file

@ -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);