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/5653>
This commit is contained in:
Sebastian Dröge 2023-11-11 14:10:37 +02:00 committed by Tim-Philipp Müller
parent b1067c023d
commit dc1dc56c2d

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