From: Eunhae Choi Date: Thu, 1 Oct 2015 07:33:35 +0000 (+0900) Subject: player/subtitle: set encoding type with CP949 instead of EUC-KR X-Git-Tag: accepted/tizen/mobile/20151005.055416~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d02bd476e8fd5a7ad9103d7ff3f74600f7198855;p=platform%2Fcore%2Fmultimedia%2Flibmm-player.git player/subtitle: set encoding type with CP949 instead of EUC-KR 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 --- diff --git a/src/server/mm_player_utils.c b/src/server/mm_player_utils.c index d23d8a1..e93e29c 100644 --- a/src/server/mm_player_utils.c +++ b/src/server/mm_player_utils.c @@ -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);