From 2acd5d45dc716e2ba59a1131f9f84dfb49f53eeb Mon Sep 17 00:00:00 2001 From: Eunhae Choi Date: Wed, 5 Dec 2018 11:12:31 +0900 Subject: [PATCH] subparse: modify log message Change-Id: I91985a20f452b32b9930a2606d9ac439d311ab2d --- gst/subparse/gstsubparse.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; } -- 2.7.4