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).
This commit is contained in:
wm4 2018-01-06 17:52:57 +01:00 committed by Kevin Mitchell
parent 34cf655ddd
commit b1a11191fd
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ static int try_open_file(struct demuxer *demux, enum demux_check check)
if (!bstr_startswith0(bstr0(demux->filename), "null://") && if (!bstr_startswith0(bstr0(demux->filename), "null://") &&
check != DEMUX_CHECK_REQUEST) check != DEMUX_CHECK_REQUEST)
return -1; return -1;
demux->seekable = true;
return 0; return 0;
} }