mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
playback/player: gtk-play: move play_current_uri after the signal handler registration
This commit is contained in:
parent
5aa6c468a0
commit
76fb77bfe8
1 changed files with 2 additions and 2 deletions
|
@ -1506,8 +1506,6 @@ main (gint argc, gchar ** argv)
|
|||
gst_player_visualizations_free (viss);
|
||||
}
|
||||
|
||||
play_current_uri (&play, g_list_first (play.uris), NULL);
|
||||
|
||||
g_signal_connect (play.player, "position-updated",
|
||||
G_CALLBACK (position_updated_cb), &play);
|
||||
g_signal_connect (play.player, "duration-changed",
|
||||
|
@ -1521,6 +1519,8 @@ main (gint argc, gchar ** argv)
|
|||
gst_player_play (play.player);
|
||||
play.current_uri = g_list_first (play.uris);
|
||||
|
||||
play_current_uri (&play, g_list_first (play.uris), NULL);
|
||||
|
||||
gtk_main ();
|
||||
|
||||
play_clear (&play);
|
||||
|
|
Loading…
Reference in a new issue