From 39ed9b7d96f553096eeb02117ff531e42c11951d Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 18 Mar 2015 22:13:41 +0100 Subject: 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. --- player/configfiles.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- cgit v1.2.3