mirror of
https://github.com/mpv-player/mpv
synced 2025-02-18 05:37:04 +00:00
player: don't quit with --loop-file
Fixes #1009. CC: @mpv-player/stable
This commit is contained in:
parent
e33df9b7bc
commit
51ce535822
@ -734,6 +734,7 @@ static void handle_loop_file(struct MPContext *mpctx)
|
|||||||
{
|
{
|
||||||
struct MPOpts *opts = mpctx->opts;
|
struct MPOpts *opts = mpctx->opts;
|
||||||
if (opts->loop_file && mpctx->stop_play == AT_END_OF_FILE) {
|
if (opts->loop_file && mpctx->stop_play == AT_END_OF_FILE) {
|
||||||
|
mpctx->stop_play = KEEP_PLAYING;
|
||||||
set_osd_function(mpctx, OSD_FFW);
|
set_osd_function(mpctx, OSD_FFW);
|
||||||
queue_seek(mpctx, MPSEEK_ABSOLUTE, get_start_time(mpctx), 0, true);
|
queue_seek(mpctx, MPSEEK_ABSOLUTE, get_start_time(mpctx), 0, true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user