gst/asfdemux/gstasfdemux.c: Skip tags that are unknown (was producing an uninialized GValue).
Original commit message from CVS: * gst/asfdemux/gstasfdemux.c: (gst_asf_demux_get_gst_tag_from_tag_name), (gst_asf_demux_process_ext_content_desc): Skip tags that are unknown (was producing an uninialized GValue).
This commit is contained in:
parent
ce372a2337
commit
e70a50e330
@ -1,3 +1,10 @@
|
|||||||
|
2006-09-07 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
|
* gst/asfdemux/gstasfdemux.c:
|
||||||
|
(gst_asf_demux_get_gst_tag_from_tag_name),
|
||||||
|
(gst_asf_demux_process_ext_content_desc):
|
||||||
|
Skip tags that are unknown (was producing an uninialized GValue).
|
||||||
|
|
||||||
2006-09-01 Michael Smith <msmith@fluendo.com>
|
2006-09-01 Michael Smith <msmith@fluendo.com>
|
||||||
|
|
||||||
* ext/a52dec/gsta52dec.c: (gst_a52dec_mode_get_type),
|
* ext/a52dec/gsta52dec.c: (gst_a52dec_mode_get_type),
|
||||||
|
@ -1173,6 +1173,8 @@ gst_asf_demux_get_gst_tag_from_tag_name (const gchar * name_utf16le,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GST_DEBUG ("map tagname '%s'", name_utf8);
|
||||||
|
|
||||||
for (i = 0; i < G_N_ELEMENTS (tags); ++i) {
|
for (i = 0; i < G_N_ELEMENTS (tags); ++i) {
|
||||||
if (strncmp (tags[i].asf_name, name_utf8, out) == 0) {
|
if (strncmp (tags[i].asf_name, name_utf8, out) == 0) {
|
||||||
g_free (name_utf8);
|
g_free (name_utf8);
|
||||||
@ -1273,7 +1275,7 @@ gst_asf_demux_process_ext_content_desc (GstASFDemux * demux, guint8 ** p_data,
|
|||||||
goto not_enough_data;
|
goto not_enough_data;
|
||||||
|
|
||||||
gst_tag_name = gst_asf_demux_get_gst_tag_from_tag_name (name, name_len);
|
gst_tag_name = gst_asf_demux_get_gst_tag_from_tag_name (name, name_len);
|
||||||
if (gst_tag_name != NULL) {
|
if (datatype && (gst_tag_name != NULL)) {
|
||||||
switch (datatype) {
|
switch (datatype) {
|
||||||
case ASF_DEMUX_DATA_TYPE_UTF16LE_STRING:{
|
case ASF_DEMUX_DATA_TYPE_UTF16LE_STRING:{
|
||||||
gchar *value_utf8;
|
gchar *value_utf8;
|
||||||
@ -1338,7 +1340,7 @@ gst_asf_demux_process_ext_content_desc (GstASFDemux * demux, guint8 ** p_data,
|
|||||||
|
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
|
|
||||||
|
/* Errors */
|
||||||
not_enough_data:
|
not_enough_data:
|
||||||
{
|
{
|
||||||
/* avoid compiler warning when disabling logging at compile time */
|
/* avoid compiler warning when disabling logging at compile time */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user