summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-01-06 17:52:57 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-01-06 14:42:22 -0800
commitb1a11191fdda06f737ce6d9b25e21fbcc6bb16d1 (patch)
tree586c1ed2be534f208678813c00db882fed40157f
parent34cf655ddd99a67af0d1899499c14c4617236352 (diff)
downloadmpv-b1a11191fdda06f737ce6d9b25e21fbcc6bb16d1.tar.bz2
mpv-b1a11191fdda06f737ce6d9b25e21fbcc6bb16d1.tar.xz
demux_null: mark as seekable
No reason not to, and enables some strange constructions with --external-file (although the result is not too smooth for certain reasons).
-rw-r--r--demux/demux_null.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/demux_null.c b/demux/demux_null.c
index 1d4f4df794..0ce3ac4af6 100644
--- a/demux/demux_null.c
+++ b/demux/demux_null.c
@@ -24,6 +24,7 @@ static int try_open_file(struct demuxer *demux, enum demux_check check)
if (!bstr_startswith0(bstr0(demux->filename), "null://") &&
check != DEMUX_CHECK_REQUEST)
return -1;
+ demux->seekable = true;
return 0;
}