[Mplayer-cvslog] CVS: main subreader.c,1.31,1.32
Adam Tla/lka
atlka at mplayer.dev.hu
Wed Oct 24 15:58:08 CEST 2001
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv3974
Modified Files:
subreader.c
Log Message:
added DUMPSUBS recognition if we need compile only subreader.c alone
Index: subreader.c
===================================================================
RCS file: /cvsroot/mplayer/main/subreader.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- subreader.c 22 Oct 2001 07:43:32 -0000 1.31
+++ subreader.c 24 Oct 2001 13:57:46 -0000 1.32
@@ -497,8 +497,12 @@
return -1; // too many bad lines
}
-
+
+#ifdef DUMPSUBS
+int sub_utf8=0;
+#else
extern int sub_utf8;
+#endif
#ifdef USE_ICONV
static iconv_t icdsc;
@@ -771,7 +775,7 @@
-#if 0
+#ifdef DUMPSUBS
int main(int argc, char **argv) { // for testing
int i,j;
@@ -782,7 +786,7 @@
printf("\nUsage: subreader filename.sub\n\n");
exit(1);
}
-
+ sub_cp = argv[2];
subs=sub_read_file(argv[1]);
if(!subs){
printf("Couldn't load file... let's write a bugreport :)\n");
More information about the MPlayer-cvslog
mailing list