Commit 4c10a1ba authored by Philippe Normand's avatar Philippe Normand 🥑
Browse files

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.
parent 6704fbb0
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment