[Mplayer-cvslog] CVS: main/postproc postprocess.c,1.55,1.56

Michael Niedermayer michael at mplayer.dev.hu
Fri Jan 4 22:56:14 CET 2002


Update of /cvsroot/mplayer/main/postproc
In directory mplayer:/var/tmp.root/cvs-serv11115

Modified Files:
	postprocess.c 
Log Message:
fixed -npp help ... i think i need more sleep ;)


Index: postprocess.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/postprocess.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- postprocess.c	4 Jan 2002 13:39:06 -0000	1.55
+++ postprocess.c	4 Jan 2002 21:56:11 -0000	1.56
@@ -580,13 +580,6 @@
 
 	strncpy(temp, name, GET_MODE_BUFFER_SIZE);
 
-	if(!strcmp("help", name))
-	{
-		printf("%s", help);
-		ppMode.error++;
-		return ppMode;
-	}
-	
 	if(verbose) printf("%s\n", name);
 
 	for(;;){
@@ -768,6 +761,13 @@
 int readPPOpt(void *conf, char *arg)
 {
 	int quality;
+	
+	if(!strcmp("help", arg))
+	{
+		printf("%s", help);
+		exit(1);
+	}
+	
 	for(quality=0; quality<GET_PP_QUALITY_MAX+1; quality++)
 	{
 		gPPMode[quality]= getPPModeByNameAndQuality(arg, quality);




More information about the MPlayer-cvslog mailing list