From 6b22f53fa9ddc75b5a028554a4b6ed0e259b1023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 15 Nov 2023 19:13:08 +0200 Subject: [PATCH] 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: --- subprojects/gst-plugins-bad/gst-libs/gst/player/gstplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/player/gstplayer.c b/subprojects/gst-plugins-bad/gst-libs/gst/player/gstplayer.c index 5fc0584b84..b7b0089c44 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/player/gstplayer.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/player/gstplayer.c @@ -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",