[Mplayer-dev-eng] changes to output

Christian Ohm chr.ohm at gmx.net
Tue Sep 11 12:54:25 CEST 2001


hi.

the following patch removes some of the imho more useless things mplayer
prints while running.

bye



Index: lirc_mp.c
===================================================================
RCS file: /cvsroot/mplayer/main/lirc_mp.c,v
retrieving revision 1.8
diff -u -r1.8 lirc_mp.c
--- lirc_mp.c	19 Jun 2001 22:16:12 -0000	1.8
+++ lirc_mp.c	11 Sep 2001 10:14:45 -0000
@@ -37,9 +37,9 @@
   int lirc_flags;
   int lirc_sock;
 
-  printf("Setting up lirc support...\n");
+  printf("Setting up LIRC support... ");
   if((lirc_sock=lirc_init("mplayer_lirc",1))==-1){
-    printf("Failed opening lirc support!\n");
+    printf("Failed!\n");
     printf("You won't be able to use your remote control\n");
     return;
   }
@@ -51,6 +51,7 @@
      fcntl(lirc_sock,F_SETFL,lirc_flags|O_NONBLOCK);
   }else{
     lirc_deinit();
+    printf("Error!\n");
     printf("Something's wrong with the lirc socket: %s\n", 
             strerror(errno));
     printf("You won't be able to use your remote control\n");
@@ -59,13 +60,14 @@
 
 
   if(lirc_readconfig( lirc_configfile,&lirc_config,NULL )!=0 ){
+    printf("Error!\n");
     printf("Failed to read config file %s !\n", 
 		    lirc_configfile == NULL ? "~/.lircrc" : lirc_configfile);
     printf("You won't be able to use your remote control\n");
     lirc_deinit();
     return;
   }
-  printf("LIRC init was successful.\n");
+  printf("ready.\n");
   lirc_is_setup = 1;
 }
 
@@ -73,7 +75,6 @@
 
 void lirc_mp_cleanup(void){
   if(lirc_is_setup != 0){
-    printf("Cleaning up lirc stuff.\n");
     lirc_mp_getinput(NULL);
     lirc_freeconfig(lirc_config);
     lirc_deinit();
@@ -126,7 +127,6 @@
         // but we would have to introduce state since we need to keep 
         // code
         if((ret=lirc_code2char(lirc_config,code,&c))==0 && c!=NULL){
-          fprintf(stderr, "LIRC: Got string \"%s\"",c);
           for(i=0; i< (sizeof(lirc_cmd)/sizeof(struct lirc_cmd)); i++){
 	    if(!(strcmp(lirc_cmd[i].lc_lirccmd, c))){
               retval = lirc_cmd[i].mplayer_cmd;
Index: url.c
===================================================================
RCS file: /cvsroot/mplayer/main/url.c,v
retrieving revision 1.7
diff -u -r1.7 url.c
--- url.c	22 Aug 2001 19:40:46 -0000	1.7
+++ url.c	11 Sep 2001 10:14:50 -0000
@@ -39,7 +39,6 @@
 	// extract the protocol
 	ptr1 = strstr(url, "://");
 	if( ptr1==NULL ) {
-		printf("Not an URL!\n");
 		return NULL;
 	}
 	pos1 = ptr1-url;





-- 
When does later become never?

_______________________________________________
Mplayer-dev-eng mailing list
Mplayer-dev-eng at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mplayer-dev-eng



More information about the MPlayer-dev-eng mailing list