[MPlayer-cvslog] r36333 - trunk/libvo/vo_aa.c

reimar subversion at mplayerhq.hu
Tue Jun 11 21:23:13 CEST 2013


Author: reimar
Date: Tue Jun 11 21:23:12 2013
New Revision: 36333

Log:
vo_aa: Specifying a single option should only change the
value of that option.

Previous code mean that specifying anything at all would
disable all aalib options.

Modified:
   trunk/libvo/vo_aa.c

Modified: trunk/libvo/vo_aa.c
==============================================================================
--- trunk/libvo/vo_aa.c	Tue Jun 11 20:38:56 2013	(r36332)
+++ trunk/libvo/vo_aa.c	Tue Jun 11 21:23:12 2013	(r36333)
@@ -613,6 +613,7 @@ static int parse_suboptions(const char *
         p->name = booleans_list[i] + 1;
         p->type = OPT_ARG_BOOL;
         p->valp = &booleans[i];
+        booleans[i] = -1;
     }
     memcpy(p, extra_opts, sizeof(extra_opts));
 
@@ -640,6 +641,7 @@ static int parse_suboptions(const char *
         }
         pseudoargv[2] = NULL;
         for (i=0; i<nbooleans; i++) {
+            if (booleans[i] == -1) continue;
             pseudoargc = 2;
             if (booleans[i]) pseudoargv[1] = booleans_list[i];
             else pseudoargv[1] = nobooleans_list[i];


More information about the MPlayer-cvslog mailing list