player: Without dispatcher emit signals directly instead of via the default main...
authorSebastian Dröge <sebastian@centricular.com>
Wed, 15 Nov 2023 17:13:08 +0000 (19:13 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 15 Nov 2023 18:15:54 +0000 (18:15 +0000)
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>

subprojects/gst-plugins-bad/gst-libs/gst/player/gstplayer.c

index 5fc0584b8492521a28f8d32a31abf18f377c22b6..b7b0089c4487039abb622d6eb0d170b493f1266e 100644 (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",