From: Eunhae Choi Date: Wed, 5 Dec 2018 02:12:31 +0000 (+0900) Subject: subparse: modify log message X-Git-Tag: accepted/tizen/unified/20181207.061530^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2acd5d45dc716e2ba59a1131f9f84dfb49f53eeb;p=platform%2Fupstream%2Fgst-plugins-base.git subparse: modify log message Change-Id: I91985a20f452b32b9930a2606d9ac439d311ab2d --- diff --git a/gst/subparse/gstsubparse.c b/gst/subparse/gstsubparse.c index f5e2a2f..5e4bb0b 100644 --- a/gst/subparse/gstsubparse.c +++ b/gst/subparse/gstsubparse.c @@ -540,7 +540,7 @@ convert_encoding (GstSubParse * self, const gchar * str, gsize len, #ifdef TIZEN_FEATURE_SUBPARSE_MODIFICATION if (!strcmp (self->encoding, "EUC-KR")) { - GST_WARNING ("fallback case occured with EUC-KR, so going with CP949"); + GST_LOG_OBJECT (self, "use CP949 as fallback"); g_free (self->encoding); self->encoding = g_strdup ("CP949"); encoding = self->encoding; @@ -548,6 +548,7 @@ convert_encoding (GstSubParse * self, const gchar * str, gsize len, } else { #endif /* invalid input encoding, fall back to ISO-8859-15 (always succeeds) */ + GST_LOG_OBJECT (self, "use ISO-8859-15 as fallback"); ret = gst_convert_to_utf8 (str, len, "ISO-8859-15", consumed, NULL); #ifdef TIZEN_FEATURE_SUBPARSE_MODIFICATION } @@ -555,8 +556,8 @@ convert_encoding (GstSubParse * self, const gchar * str, gsize len, } GST_LOG_OBJECT (self, - "successfully converted %" G_GSIZE_FORMAT " characters from %s to UTF-8" - "%s", len, encoding, (err) ? " , using ISO-8859-15 as fallback" : ""); + "successfully converted %" G_GSIZE_FORMAT " characters from %s to UTF-8", + len, encoding); return ret; }