player/subtitle: set encoding type with CP949 instead of EUC-KR 34/48634/3
authorEunhae Choi <eunhae1.choi@samsung.com>
Thu, 1 Oct 2015 07:33:35 +0000 (16:33 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Thu, 1 Oct 2015 07:33:42 +0000 (16:33 +0900)
Some smi characters are broken because they are encoded by CP949.
Before, code patch was added on subparse but it is too specific.
Gstreamer Application can set the encoding type on subparse property.

Change-Id: I3bd5b06a96ffd59ffa44050bb732ed866f61c70d

src/server/mm_player_utils.c

index d23d8a1..e93e29c 100644 (file)
@@ -390,6 +390,11 @@ util_get_charset(const char *file_path)
                goto done;
        }
 
+       /* CP949 encoding is an extension of the EUC-KR and it is backwards compatible.*/
+       if(charset && !strcmp(charset, "EUC-KR")) {
+               charset = "CP949";
+       }
+
 done:
        if(fin)
                fclose(fin);