player: Without dispatcher emit signals directly instead of via the default main context

This is how it was documented and how it worked before the port to GstPlay.

Without this, applications expecting signals to be emitted directly
without anything running the main context will simply not receive any
signals.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5673>
This commit is contained in:
Sebastian Dröge 2023-11-15 19:13:08 +02:00 committed by Tim-Philipp Müller
parent faf6edc026
commit 07cb8432cc

View file

@ -582,7 +582,7 @@ gst_player_constructed (GObject * object)
gst_play_signal_adapter_new_with_main_context (self->play, context);
g_main_context_unref (context);
} else {
self->signal_adapter = gst_play_signal_adapter_new (self->play);
self->signal_adapter = gst_play_signal_adapter_new_sync_emit (self->play);
}
g_signal_connect (self->signal_adapter, "uri-loaded",