subparse: modify log message
authorEunhae Choi <eunhae1.choi@samsung.com>
Wed, 5 Dec 2018 02:12:31 +0000 (11:12 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Wed, 5 Dec 2018 02:12:31 +0000 (11:12 +0900)
Change-Id: I91985a20f452b32b9930a2606d9ac439d311ab2d

gst/subparse/gstsubparse.c

index f5e2a2f..5e4bb0b 100644 (file)
@@ -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;
 }