mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
mpegtsmux: Use terminological ISO 639-2 language codes
These are preferred in most circumstances. Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2649 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4795>
This commit is contained in:
parent
51877ee373
commit
6e9d67bbc1
1 changed files with 2 additions and 2 deletions
|
@ -2098,11 +2098,11 @@ gst_base_ts_mux_sink_event (GstAggregator * agg, GstAggregatorPad * agg_pad,
|
|||
GST_DEBUG_OBJECT (mux, "received tag event");
|
||||
gst_event_parse_tag (event, &list);
|
||||
|
||||
/* Matroska wants ISO 639-2B code, taglist most likely contains 639-1 */
|
||||
/* MPEG wants ISO 639-2T code, taglist most likely contains 639-1 */
|
||||
if (gst_tag_list_get_string (list, GST_TAG_LANGUAGE_CODE, &lang)) {
|
||||
const gchar *lang_code;
|
||||
|
||||
lang_code = gst_tag_get_language_code_iso_639_2B (lang);
|
||||
lang_code = gst_tag_get_language_code_iso_639_2T (lang);
|
||||
if (lang_code) {
|
||||
|
||||
g_mutex_lock (&mux->lock);
|
||||
|
|
Loading…
Reference in a new issue