mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
player: refuse to write resume file with unseekable files
In fact this should happen on resume, not on saving, but it's simpler this way. Fixes #1701.
This commit is contained in:
@@ -289,6 +289,12 @@ void mp_write_watch_later_conf(struct MPContext *mpctx)
|
||||
if (!filename)
|
||||
goto exit;
|
||||
|
||||
struct demuxer *demux = mpctx->demuxer;
|
||||
if (demux && demux->seekable && demux->partially_seekable) {
|
||||
MP_INFO(mpctx, "Not seekable - not saving state.\n");
|
||||
goto exit;
|
||||
}
|
||||
|
||||
double pos = get_current_time(mpctx);
|
||||
if (pos == MP_NOPTS_VALUE)
|
||||
goto exit;
|
||||
|
||||
Reference in New Issue
Block a user