mirror of
https://github.com/mpv-player/mpv
synced 2025-03-20 02:09:52 +00:00
demux_mkv: export Matroska title element as metadata
This commit is contained in:
parent
83570fc0fb
commit
c2f96b020d
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user