1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

player: shorten skip heuristic for playlist_prev to 1 second

See issue #1084.
This commit is contained in:
wm4 2014-09-14 10:32:24 +02:00
parent 08116feec7
commit 955671f64a

View File

@ -1330,9 +1330,9 @@ terminate_playback:
mpctx->resolve_result = NULL;
if (mpctx->playing && mpctx->stop_play == AT_END_OF_FILE) {
// Played/paused for longer than 3 seconds -> ok
// Played/paused for longer than 1 second -> ok
mpctx->playing->playback_short =
playback_start < 0 || mp_time_sec() - playback_start < 3.0;
playback_start < 0 || mp_time_sec() - playback_start < 1.0;
mpctx->playing->init_failed =
mpctx->shown_aframes == 0 && mpctx->shown_vframes == 0;
}