mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
ext/mad/gstid3tag.c: Use the correct function to free typefind factory list.
Original commit message from CVS: * ext/mad/gstid3tag.c: (gst_mad_id3_to_tag_list), (gst_id3_tag_do_typefind): Use the correct function to free typefind factory list.
This commit is contained in:
parent
741c6663e2
commit
b77f717fa6
2 changed files with 13 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2005-12-12 Michael Smith <msmith@fluendo.com>
|
||||||
|
|
||||||
|
* ext/mad/gstid3tag.c: (gst_mad_id3_to_tag_list),
|
||||||
|
(gst_id3_tag_do_typefind):
|
||||||
|
Use the correct function to free typefind factory list.
|
||||||
|
|
||||||
2005-12-09 Tim-Philipp Müller <tim at centricular dot net>
|
2005-12-09 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* ext/mad/gstmad.c: (gst_mad_src_query):
|
* ext/mad/gstmad.c: (gst_mad_src_query):
|
||||||
|
|
|
@ -575,6 +575,9 @@ gst_mad_id3_to_tag_list (const struct id3_tag * tag)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp (id, "COMM") == 0) {
|
if (strcmp (id, "COMM") == 0) {
|
||||||
|
if (frame->nfields < 4)
|
||||||
|
continue;
|
||||||
|
|
||||||
ucs4 = id3_field_getfullstring (&frame->fields[3]);
|
ucs4 = id3_field_getfullstring (&frame->fields[3]);
|
||||||
g_assert (ucs4);
|
g_assert (ucs4);
|
||||||
|
|
||||||
|
@ -595,6 +598,9 @@ gst_mad_id3_to_tag_list (const struct id3_tag * tag)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (frame->nfields < 2)
|
||||||
|
continue;
|
||||||
|
|
||||||
field = &frame->fields[1];
|
field = &frame->fields[1];
|
||||||
nstrings = id3_field_getnstrings (field);
|
nstrings = id3_field_getnstrings (field);
|
||||||
|
|
||||||
|
@ -1030,7 +1036,7 @@ gst_id3_tag_do_typefind (GstID3Tag * tag, GstBuffer * buffer)
|
||||||
break;
|
break;
|
||||||
walk = g_list_next (walk);
|
walk = g_list_next (walk);
|
||||||
}
|
}
|
||||||
g_list_free (type_list);
|
gst_plugin_feature_list_free (type_list);
|
||||||
if (find.best_probability > 0) {
|
if (find.best_probability > 0) {
|
||||||
return find.caps;
|
return find.caps;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue