subparse: fix svace issue 94/225494/2 tizen_gst_1.16.2
authorEunhye Choi <eunhae1.choi@samsung.com>
Thu, 20 Feb 2020 07:49:41 +0000 (16:49 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Fri, 21 Feb 2020 05:39:45 +0000 (14:39 +0900)
Change-Id: I0008756d0b796b761591a0195fef800db2d02b87

gst/subparse/gstsubparse.c

index 6d806de7cb22f15bc70ae3ee3f9a6ed7c84b5ffd..5a2a7f27c0809de345938a54818afb59f4496171 100644 (file)
@@ -549,7 +549,7 @@ convert_encoding (GstSubParse * self, const gchar * str, gsize len,
     g_clear_error (&err);
 
 #ifdef TIZEN_FEATURE_SUBPARSE_MODIFICATION
-    if (!strcmp (self->encoding, "EUC-KR")) {
+    if (!g_strcmp0 (self->encoding, "EUC-KR")) {
       GST_LOG_OBJECT (self, "use CP949 as fallback");
       g_free (self->encoding);
       self->encoding = g_strdup ("CP949");
@@ -2008,7 +2008,7 @@ gst_sub_parse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
 #ifdef TIZEN_FEATURE_SUBPARSE_MODIFICATION
       SUBPARSE_SEEK_UNLOCK (self);
 #endif
-         
+
       break;
     }
     case GST_EVENT_FLUSH_START: