playback/player: gtk-play: do not set window title in resume button cb.

Window title is set from media-info-updated signal hence
updating the window title in resume button callback will override
the title set from media-info-updated signal.
This commit is contained in:
Brijesh Singh 2015-05-07 15:21:28 -05:00 committed by Sebastian Dröge
parent 1b1aed87c5
commit 15b1167746

View file

@ -141,17 +141,11 @@ play_pause_clicked_cb (GtkButton * button, GtkPlay * play)
gtk_button_set_image (GTK_BUTTON (play->play_pause_button), image);
play->playing = FALSE;
} else {
gchar *title;
gst_player_play (play->player);
image =
gtk_image_new_from_icon_name ("media-playback-pause",
GTK_ICON_SIZE_BUTTON);
gtk_button_set_image (GTK_BUTTON (play->play_pause_button), image);
title = gst_player_get_uri (play->player);
set_title (play, title);
g_free (title);
play->playing = TRUE;
}
}