mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
mssdemux: push language code tag
https://bugzilla.gnome.org/show_bug.cgi?id=712358
This commit is contained in:
parent
d6a9f17d8a
commit
f44c6ed526
1 changed files with 9 additions and 0 deletions
|
@ -801,6 +801,7 @@ gst_mss_demux_expose_stream (GstMssDemux * mssdemux, GstMssDemuxStream * stream)
|
|||
|
||||
if (media_caps) {
|
||||
gchar *name = gst_pad_get_name (pad);
|
||||
const gchar *lang;
|
||||
GstEvent *event;
|
||||
gchar *stream_id;
|
||||
gst_pad_set_active (pad, TRUE);
|
||||
|
@ -834,6 +835,14 @@ gst_mss_demux_expose_stream (GstMssDemux * mssdemux, GstMssDemuxStream * stream)
|
|||
gst_pad_set_caps (pad, caps);
|
||||
stream->caps = caps;
|
||||
|
||||
lang = gst_mss_stream_get_lang (stream->manifest_stream);
|
||||
if (lang != NULL) {
|
||||
GstTagList *tags;
|
||||
|
||||
tags = gst_tag_list_new (GST_TAG_LANGUAGE_CODE, lang, NULL);
|
||||
gst_pad_push_event (stream->pad, gst_event_new_tag (tags));
|
||||
}
|
||||
|
||||
GST_INFO_OBJECT (mssdemux, "Adding srcpad %s:%s with caps %" GST_PTR_FORMAT,
|
||||
GST_DEBUG_PAD_NAME (pad), caps);
|
||||
gst_object_ref (pad);
|
||||
|
|
Loading…
Reference in a new issue