summaryrefslogtreecommitdiffstats
path: root/player/configfiles.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/configfiles.c')
-rw-r--r--player/configfiles.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/player/configfiles.c b/player/configfiles.c
index 621c2f96e1..d161977248 100644
--- a/player/configfiles.c
+++ b/player/configfiles.c
@@ -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;