From: Sebastian Dröge Date: Mon, 23 May 2011 14:02:34 +0000 (+0200) Subject: subparse: Try to typefind even if conversion to UTF8 failed X-Git-Tag: 1.19.3~511^2~6555^2~798^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f15d3768544a832ad816dd57e0ec9ca68cb1803;p=platform%2Fupstream%2Fgstreamer.git subparse: Try to typefind even if conversion to UTF8 failed Fixes bug #600043. --- diff --git a/gst/subparse/gstsubparse.c b/gst/subparse/gstsubparse.c index 2cc6b56..187c3d5 100644 --- a/gst/subparse/gstsubparse.c +++ b/gst/subparse/gstsubparse.c @@ -1791,12 +1791,7 @@ gst_subparse_type_find (GstTypeFind * tf, gpointer private) } } converted_str = gst_convert_to_utf8 (str, 128, enc, &tmp, &err); - if (converted_str == NULL) { - GST_DEBUG ("Charset conversion failed: %s", err->message); - g_error_free (err); - g_free (str); - return; - } else { + if (converted_str != NULL) { g_free (str); str = converted_str; }