playback/player: Make it possible to call play()/pause() after EOS to restart playback from the beginning

This commit is contained in:
Sebastian Dröge 2015-03-01 13:59:08 +01:00
parent 6342159440
commit 0b7383c104

View file

@ -284,7 +284,14 @@ eos_cb (GstPlayer * unused, GtkPlay * play)
gst_player_play (play->player);
set_title (play, next->data);
} else {
gst_player_stop (play->player);
GtkWidget *image;
gst_player_pause (play->player);
image =
gtk_image_new_from_icon_name ("media-playback-start",
GTK_ICON_SIZE_BUTTON);
gtk_button_set_image (GTK_BUTTON (play->play_pause_button), image);
play->playing = FALSE;
}
}
}