mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-11 11:51:34 +00:00
playback/player: Make it possible to call play()/pause() after EOS to restart playback from the beginning
This commit is contained in:
parent
6342159440
commit
0b7383c104
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue