projects
/
platform
/
core
/
multimedia
/
libmm-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c00c88
)
player/subtitle: set encoding type with CP949 instead of EUC-KR
34/48634/3
author
Eunhae Choi
<eunhae1.choi@samsung.com>
Thu, 1 Oct 2015 07:33:35 +0000
(16:33 +0900)
committer
Eunhae 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
patch
|
blob
|
history
diff --git
a/src/server/mm_player_utils.c
b/src/server/mm_player_utils.c
index
d23d8a1
..
e93e29c
100644
(file)
--- 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);