mirror of
https://github.com/mpv-player/mpv
synced 2025-03-21 18:57:35 +00:00
demux: autoselection is gone
Was used by DVD, I think.
This commit is contained in:
parent
cb51dfa76a
commit
adbd035b50
@ -170,7 +170,6 @@ struct demux_internal {
|
|||||||
bool last_eof; // last actual global EOF status
|
bool last_eof; // last actual global EOF status
|
||||||
bool eof; // whether we're in EOF state (reset for retry)
|
bool eof; // whether we're in EOF state (reset for retry)
|
||||||
bool idle;
|
bool idle;
|
||||||
bool autoselect;
|
|
||||||
double min_secs;
|
double min_secs;
|
||||||
size_t max_bytes;
|
size_t max_bytes;
|
||||||
size_t max_bytes_bw;
|
size_t max_bytes_bw;
|
||||||
@ -853,7 +852,6 @@ static void demux_add_sh_stream_locked(struct demux_internal *in,
|
|||||||
.sh = sh,
|
.sh = sh,
|
||||||
.type = sh->type,
|
.type = sh->type,
|
||||||
.index = sh->index,
|
.index = sh->index,
|
||||||
.selected = in->autoselect,
|
|
||||||
.global_correct_dts = true,
|
.global_correct_dts = true,
|
||||||
.global_correct_pos = true,
|
.global_correct_pos = true,
|
||||||
};
|
};
|
||||||
@ -2943,12 +2941,6 @@ void demuxer_select_track(struct demuxer *demuxer, struct sh_stream *stream,
|
|||||||
pthread_mutex_unlock(&in->lock);
|
pthread_mutex_unlock(&in->lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
void demux_set_stream_autoselect(struct demuxer *demuxer, bool autoselect)
|
|
||||||
{
|
|
||||||
assert(!demuxer->in->threading); // laziness
|
|
||||||
demuxer->in->autoselect = autoselect;
|
|
||||||
}
|
|
||||||
|
|
||||||
// This is for demuxer implementations only. demuxer_select_track() sets the
|
// This is for demuxer implementations only. demuxer_select_track() sets the
|
||||||
// logical state, while this function returns the actual state (in case the
|
// logical state, while this function returns the actual state (in case the
|
||||||
// demuxer attempts to cache even unselected packets for track switching - this
|
// demuxer attempts to cache even unselected packets for track switching - this
|
||||||
|
@ -278,7 +278,6 @@ void demux_block_reading(struct demuxer *demuxer, bool block);
|
|||||||
|
|
||||||
void demuxer_select_track(struct demuxer *demuxer, struct sh_stream *stream,
|
void demuxer_select_track(struct demuxer *demuxer, struct sh_stream *stream,
|
||||||
double ref_pts, bool selected);
|
double ref_pts, bool selected);
|
||||||
void demux_set_stream_autoselect(struct demuxer *demuxer, bool autoselect);
|
|
||||||
|
|
||||||
void demuxer_help(struct mp_log *log);
|
void demuxer_help(struct mp_log *log);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user