Mercurial > mplayer.hg
changeset 36237:dc06b09d02a4
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.
author | reimar |
---|---|
date | Tue, 11 Jun 2013 19:23:12 +0000 |
parents | 6e2919257e92 |
children | 1573608248ad |
files | libvo/vo_aa.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_aa.c Tue Jun 11 18:38:56 2013 +0000 +++ b/libvo/vo_aa.c Tue Jun 11 19:23:12 2013 +0000 @@ -613,6 +613,7 @@ 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 @@ } 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];