[MPlayer-cvslog] r26222 - trunk/input/input.c

reimar subversion at mplayerhq.hu
Tue Mar 11 15:44:19 CET 2008


Author: reimar
Date: Tue Mar 11 15:44:19 2008
New Revision: 26222

Log:
Fix handling of comments in input.c, current code had useless ifs and in addition
could treat more data as comments than correct.


Modified:
   trunk/input/input.c

Modified: trunk/input/input.c
==============================================================================
--- trunk/input/input.c	(original)
+++ trunk/input/input.c	Tue Mar 11 15:44:19 2008
@@ -1574,11 +1574,9 @@ mp_input_parse_config(char *file) {
       }
       iter++;
       r = strlen(iter);
-      if(r)
-	memmove(buffer,iter,r+1);
+      memmove(buffer,iter,r+1);
       bs = r+1;
-      if(iter[0] != '#')
-	comments = 0;
+      comments = 0;
       continue;
     }
 



More information about the MPlayer-cvslog mailing list