mirror of https://github.com/mpv-player/mpv
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:
parent
51befc9deb
commit
39ed9b7d96
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue