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 e025be72d49e9e7118c99a2e8cf8894d707c783e..030ea9424cab98c42374ef9a857fed0de8f4c249 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);