mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 05:12:09 +00:00
playback/player: Don't skip to next track immediately in gst-play when seeking after the duration
Instead wait for end-of-stream for switching.
This commit is contained in:
parent
ae46c50138
commit
d828730591
1 changed files with 3 additions and 10 deletions
|
@ -329,16 +329,9 @@ relative_seek (GstPlay * play, gdouble percent)
|
|||
goto seek_failed;
|
||||
|
||||
pos = pos + dur * percent;
|
||||
if (pos > dur) {
|
||||
if (!play_next (play)) {
|
||||
g_print ("\nReached end of play list.\n");
|
||||
g_main_loop_quit (play->loop);
|
||||
}
|
||||
} else {
|
||||
if (pos < 0)
|
||||
pos = 0;
|
||||
gst_player_seek (play->player, pos);
|
||||
}
|
||||
if (pos < 0)
|
||||
pos = 0;
|
||||
gst_player_seek (play->player, pos);
|
||||
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue