mirror of https://github.com/mpv-player/mpv
demux_timeline: set correct seekable flags
Tricky misleading crap. Fixes #2898.
This commit is contained in:
parent
5c20263364
commit
a6f8a6977e
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue