demux_timeline: set correct seekable flags

Tricky misleading crap.

Fixes #2898.
This commit is contained in:
wm4 2016-03-03 15:30:55 +01:00
parent 5c20263364
commit a6f8a6977e
2 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,7 @@ typedef struct demuxer {
int64_t filepos; // input stream current pos.
char *filename; // same as stream->url
bool seekable;
bool partially_seekable; // implies seekable=true
bool partially_seekable; // true if _maybe_ seekable; implies seekable=true
double start_time;
// File format allows PTS resets (even if the current file is without)
bool ts_resets_possible;

View File

@ -344,7 +344,7 @@ static int d_open(struct demuxer *demuxer, enum demux_check check)
print_timeline(demuxer);
demuxer->seekable = true;
demuxer->partially_seekable = true;
demuxer->partially_seekable = false;
demuxer->filetype = meta->filetype ? meta->filetype : meta->desc->name;