matroskademux: Set subtitle tag title from TrackName field

GUI applications can then use the title tag to set menu items or labels
representing the track.

https://bugzilla.gnome.org/show_bug.cgi?id=796567
This commit is contained in:
Philippe Normand 2018-06-13 17:39:57 +01:00
parent 6704fbb044
commit 4c10a1ba27

View file

@ -1430,6 +1430,11 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux, GstEbmlRead * ebml)
lang = gst_tag_get_language_code (context->language);
gst_tag_list_add (context->tags, GST_TAG_MERGE_REPLACE,
GST_TAG_LANGUAGE_CODE, (lang) ? lang : context->language, NULL);
if (context->name) {
gst_tag_list_add (context->tags, GST_TAG_MERGE_REPLACE,
GST_TAG_TITLE, context->name, NULL);
}
context->tags_changed = TRUE;
}