subparse: use the right variable in debug log, encoding is not yet initialized
authorStefan Kost <ensonic@users.sf.net>
Thu, 5 Mar 2009 08:58:12 +0000 (10:58 +0200)
committerStefan Kost <ensonic@users.sf.net>
Thu, 5 Mar 2009 08:58:12 +0000 (10:58 +0200)
gst/subparse/gstsubparse.c

index e025be7..030ea94 100644 (file)
@@ -382,7 +382,7 @@ convert_encoding (GstSubParse * self, const gchar * str, gsize len,
       return ret;
 
     GST_WARNING_OBJECT (self, "could not convert string from '%s' to UTF-8: %s",
-        encoding, err->message);
+        self->detected_encoding, err->message);
     g_free (self->detected_encoding);
     self->detected_encoding = NULL;
     g_error_free (err);