diff options
Diffstat (limited to 'demux')
-rw-r--r-- | demux/demux.c | 13 | ||||
-rw-r--r-- | demux/demux.h | 2 |
2 files changed, 0 insertions, 15 deletions
diff --git a/demux/demux.c b/demux/demux.c index de59a6dc28..1991ad216b 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -1256,19 +1256,6 @@ struct sh_stream *demuxer_stream_by_demuxer_id(struct demuxer *d, return NULL; } -void demuxer_switch_track(struct demuxer *demuxer, enum stream_type type, - struct sh_stream *stream) -{ - assert(!stream || stream->type == type); - - int num = demux_get_num_stream(demuxer); - for (int n = 0; n < num; n++) { - struct sh_stream *cur = demux_get_stream(demuxer, n); - if (cur->type == type) - demuxer_select_track(demuxer, cur, cur == stream); - } -} - void demuxer_select_track(struct demuxer *demuxer, struct sh_stream *stream, bool selected) { diff --git a/demux/demux.h b/demux/demux.h index 7a24230cc8..33cbe0f3b1 100644 --- a/demux/demux.h +++ b/demux/demux.h @@ -272,8 +272,6 @@ void demux_set_ts_offset(struct demuxer *demuxer, double offset); int demux_control(struct demuxer *demuxer, int cmd, void *arg); -void demuxer_switch_track(struct demuxer *demuxer, enum stream_type type, - struct sh_stream *stream); void demuxer_select_track(struct demuxer *demuxer, struct sh_stream *stream, bool selected); void demux_set_stream_autoselect(struct demuxer *demuxer, bool autoselect); |