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:
parent
6704fbb044
commit
4c10a1ba27
@ -1430,6 +1430,11 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux, GstEbmlRead * ebml)
|
|||||||
lang = gst_tag_get_language_code (context->language);
|
lang = gst_tag_get_language_code (context->language);
|
||||||
gst_tag_list_add (context->tags, GST_TAG_MERGE_REPLACE,
|
gst_tag_list_add (context->tags, GST_TAG_MERGE_REPLACE,
|
||||||
GST_TAG_LANGUAGE_CODE, (lang) ? lang : context->language, NULL);
|
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;
|
context->tags_changed = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user