demux_mkv: export Matroska title element as metadata

This commit is contained in:
wm4 2013-05-15 15:00:52 +02:00
parent 83570fc0fb
commit c2f96b020d
1 changed files with 3 additions and 0 deletions

View File

@ -357,6 +357,9 @@ static int demux_mkv_read_info(demuxer_t *demuxer)
mp_msg(MSGT_DEMUX, MSGL_V, "[mkv] | + duration: %.3fs\n",
mkv_d->duration);
}
if (info.n_title) {
demux_info_add_bstr(demuxer, bstr0("title"), info.title);
}
if (info.n_segment_uid) {
int len = info.segment_uid.len;
if (len != sizeof(demuxer->matroska_data.segment_uid)) {