Mercurial > mplayer.hg
changeset 36637:d339a982071d
m_option: remove code that has no effect.
author | reimar |
---|---|
date | Sat, 25 Jan 2014 16:55:05 +0000 |
parents | 28ea3e45b03a |
children | 35bb402eb4a7 |
files | m_option.c |
diffstat | 1 files changed, 0 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/m_option.c Sat Jan 25 16:55:04 2014 +0000 +++ b/m_option.c Sat Jan 25 16:55:05 2014 +0000 @@ -977,14 +977,12 @@ while(p[0]) { - int sscanf_ret = 1; int optlen = strcspn(p, ":="); /* clear out */ subopt[0] = subparam[0] = 0; av_strlcpy(subopt, p, optlen + 1); p = &p[optlen]; if (p[0] == '=') { - sscanf_ret = 2; p = &p[1]; if (p[0] == '"') { p = &p[1]; @@ -1022,11 +1020,6 @@ goto out; } - switch(sscanf_ret) - { - case 1: - subparam[0] = 0; - case 2: for(i = 0 ; subopts[i].name ; i++) { if(!strcmp(subopts[i].name,subopt)) break; } @@ -1045,8 +1038,6 @@ memset(&lst[2*(nr+1)],0,2*sizeof(char*)); nr++; } - break; - } } if(dst)