From 76fb77bfe83471d0f3350aa63f7668231f1cf93e Mon Sep 17 00:00:00 2001 From: danny song Date: Thu, 4 Jun 2015 02:49:55 +0900 Subject: [PATCH] playback/player: gtk-play: move play_current_uri after the signal handler registration --- playback/player/gtk/gtk-play.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playback/player/gtk/gtk-play.c b/playback/player/gtk/gtk-play.c index fff5aec1ea..86c426b150 100644 --- a/playback/player/gtk/gtk-play.c +++ b/playback/player/gtk/gtk-play.c @@ -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);