demux: keep title chapter tag in uppercase

This is generally more uniform.

Do the same for the file global title in demux_mkv.c, although that is
not strictly related to chapters.
This commit is contained in:
wm4 2013-09-08 23:07:02 +02:00
parent f5195cc4e7
commit 1b4d9b26cb
2 changed files with 2 additions and 2 deletions

View File

@ -880,7 +880,7 @@ int demuxer_add_chapter(demuxer_t *demuxer, struct bstr name,
.metadata = talloc_zero(demuxer, struct mp_tags),
.demuxer_id = demuxer_id,
};
mp_tags_set_bstr(new.metadata, bstr0("title"), name);
mp_tags_set_bstr(new.metadata, bstr0("TITLE"), name);
MP_TARRAY_APPEND(demuxer, demuxer->chapters, demuxer->num_chapters, new);
return 0;
}

View File

@ -372,7 +372,7 @@ static int demux_mkv_read_info(demuxer_t *demuxer)
mkv_d->duration);
}
if (info.n_title) {
demux_info_add_bstr(demuxer, bstr0("title"), info.title);
demux_info_add_bstr(demuxer, bstr0("TITLE"), info.title);
}
if (info.n_segment_uid) {
int len = info.segment_uid.len;