subparse: use the right variable in debug log, encoding is not yet initialized

This commit is contained in:
Stefan Kost 2009-03-05 10:58:12 +02:00
parent c673c09e4f
commit 2723c7e4f3

View 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);