mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue