mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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
2 changed files with 11 additions and 2 deletions
|
@ -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>
|
||||
|
||||
* 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;
|
||||
}
|
||||
|
||||
GST_DEBUG ("map tagname '%s'", name_utf8);
|
||||
|
||||
for (i = 0; i < G_N_ELEMENTS (tags); ++i) {
|
||||
if (strncmp (tags[i].asf_name, name_utf8, out) == 0) {
|
||||
g_free (name_utf8);
|
||||
|
@ -1273,7 +1275,7 @@ gst_asf_demux_process_ext_content_desc (GstASFDemux * demux, guint8 ** p_data,
|
|||
goto not_enough_data;
|
||||
|
||||
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) {
|
||||
case ASF_DEMUX_DATA_TYPE_UTF16LE_STRING:{
|
||||
gchar *value_utf8;
|
||||
|
@ -1338,7 +1340,7 @@ gst_asf_demux_process_ext_content_desc (GstASFDemux * demux, guint8 ** p_data,
|
|||
|
||||
return GST_FLOW_OK;
|
||||
|
||||
|
||||
/* Errors */
|
||||
not_enough_data:
|
||||
{
|
||||
/* avoid compiler warning when disabling logging at compile time */
|
||||
|
|
Loading…
Reference in a new issue