diff --git a/gst/subparse/gstsubparse.c b/gst/subparse/gstsubparse.c index a8aaaed7b6..eaf03c337a 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; }