mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01:00
demux: remove some dead code
No idea what that shit is. Likely forgotten when timed metadata was introduced, and some of the old mechanisms were replaced.
This commit is contained in:
parent
9d8afcf79e
commit
21c9ee71e2
@ -2189,14 +2189,6 @@ static void update_final_metadata(demuxer_t *demuxer)
|
||||
assert(demuxer == demuxer->in->d_user);
|
||||
struct demux_internal *in = demuxer->in;
|
||||
|
||||
int num_streams = MPMIN(in->num_streams, demuxer->num_update_stream_tags);
|
||||
for (int n = 0; n < num_streams; n++) {
|
||||
struct sh_stream *sh = in->streams[n];
|
||||
// (replace them even if unnecessary, simpler and doesn't hurt)
|
||||
if (sh->ds->tags_reader)
|
||||
mp_tags_replace(sh->tags, sh->ds->tags_reader->sh);
|
||||
}
|
||||
|
||||
struct mp_packet_tags *tags =
|
||||
in->master_stream ? in->master_stream->tags_reader : NULL;
|
||||
|
||||
|
@ -232,8 +232,6 @@ typedef struct demuxer {
|
||||
|
||||
// internal to demux.c
|
||||
struct demux_internal *in;
|
||||
struct mp_tags **update_stream_tags;
|
||||
int num_update_stream_tags;
|
||||
|
||||
// Triggered when ending demuxing forcefully. Usually bound to the stream too.
|
||||
struct mp_cancel *cancel;
|
||||
|
Loading…
Reference in New Issue
Block a user