mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
gst/matroska/matroska-demux.c: No language specified means the implied language is English according to the matroska ...
Original commit message from CVS: * gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream): No language specified means the implied language is English according to the matroska spec (partially fixes #344708); add some more debug output.
This commit is contained in:
parent
a969a074c0
commit
40131326b3
2 changed files with 22 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2006-06-14 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* gst/matroska/matroska-demux.c: (gst_matroska_demux_add_stream):
|
||||||
|
No language specified means the implied language is English
|
||||||
|
according to the matroska spec (partially fixes #344708);
|
||||||
|
add some more debug output.
|
||||||
|
|
||||||
2006-06-14 Tim-Philipp Müller <tim at centricular dot net>
|
2006-06-14 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* gst/wavparse/gstwavparse.c: (gst_wavparse_peek_chunk_info),
|
* gst/wavparse/gstwavparse.c: (gst_wavparse_peek_chunk_info),
|
||||||
|
|
|
@ -690,6 +690,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux)
|
||||||
}
|
}
|
||||||
context->codec_priv = data;
|
context->codec_priv = data;
|
||||||
context->codec_priv_size = size;
|
context->codec_priv_size = size;
|
||||||
|
GST_LOG_OBJECT (demux, "%u bytes of codec private data", size);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -714,6 +715,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
context->name = text;
|
context->name = text;
|
||||||
|
GST_LOG ("stream %d: trackname=%s", context->index, text);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -725,7 +727,13 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux)
|
||||||
res = FALSE;
|
res = FALSE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
context->language = text;
|
context->language = text;
|
||||||
|
GST_LOG ("stream %d: language=%s", context->index, text);
|
||||||
|
|
||||||
|
/* fre-ca => fre */
|
||||||
|
if (strlen (context->language) >= 4 && context->language[3] == '-')
|
||||||
|
context->language[3] = '\0';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -889,6 +897,13 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux)
|
||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((context->language == NULL || *context->language == '\0') &&
|
||||||
|
(context->type == GST_MATROSKA_TRACK_TYPE_AUDIO ||
|
||||||
|
context->type == GST_MATROSKA_TRACK_TYPE_SUBTITLE)) {
|
||||||
|
GST_LOG ("stream %d: language=eng (assuming default)", context->index);
|
||||||
|
context->language = g_strdup ("eng");
|
||||||
|
}
|
||||||
|
|
||||||
if (context->language) {
|
if (context->language) {
|
||||||
if (!list)
|
if (!list)
|
||||||
list = gst_tag_list_new ();
|
list = gst_tag_list_new ();
|
||||||
|
|
Loading…
Reference in a new issue