[MPlayer-cvslog] CVS: main subreader.c,1.142,1.143
Jindrich Makovicka CVS
syncmail at mplayerhq.hu
Tue May 24 10:42:23 CEST 2005
CVS change done by Jindrich Makovicka CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv27238
Modified Files:
subreader.c
Log Message:
more paranoid return value checking
Index: subreader.c
===================================================================
RCS file: /cvsroot/mplayer/main/subreader.c,v
retrieving revision 1.142
retrieving revision 1.143
diff -u -r1.142 -r1.143
--- subreader.c 9 May 2005 18:28:41 -0000 1.142
+++ subreader.c 24 May 2005 08:42:20 -0000 1.143
@@ -1329,7 +1329,7 @@
analyser = enca_analyser_alloc(languages[i]);
encoding = enca_analyse_const(analyser, buffer, buflen);
tmp = enca_charset_name(encoding.charset, ENCA_NAME_STYLE_ICONV);
- if (tmp) {
+ if (tmp && encoding.charset != ENCA_CS_UNKNOWN) {
detected_sub_cp = strdup(tmp);
mp_msg(MSGT_SUBREADER, MSGL_INFO, "ENCA detected charset: %s\n", tmp);
}
More information about the MPlayer-cvslog
mailing list