playback/player: gtk-play: move play_current_uri after the signal handler registration

This commit is contained in:
danny song 2015-06-04 02:49:55 +09:00 committed by Sebastian Dröge
parent 5aa6c468a0
commit 76fb77bfe8

View file

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