mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
ext/mad/gstid3tag.c: Add guard against invalid utf-8 conversions in mad. Just in case.
Original commit message from CVS: 2004-01-07 Benjamin Otte <in7y118@public.uni-hamburg.de> * ext/mad/gstid3tag.c: (gst_mad_id3_to_tag_list): Add guard against invalid utf-8 conversions in mad. Just in case.
This commit is contained in:
parent
2855efdce1
commit
246a3667eb
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-01-07 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||
|
||||
* ext/mad/gstid3tag.c: (gst_mad_id3_to_tag_list):
|
||||
Add guard against invalid utf-8 conversions in mad. Just in case.
|
||||
|
||||
2004-01-07 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||
|
||||
* sys/oss/gstosssink.c: (gst_osssink_sink_fixate):
|
||||
|
|
|
@ -469,6 +469,12 @@ gst_mad_id3_to_tag_list(const struct id3_tag *tag)
|
|||
if (utf8 == 0)
|
||||
continue;
|
||||
|
||||
if (!g_utf8_validate (utf8, -1, NULL)) {
|
||||
g_warning ("converted string is not valid utf-8");
|
||||
free (utf8);
|
||||
continue;
|
||||
}
|
||||
|
||||
/* be sure to add non-string tags here */
|
||||
switch (gst_tag_get_type (tag_name)) {
|
||||
case G_TYPE_UINT:
|
||||
|
|
Loading…
Reference in a new issue