Mercurial > mplayer.hg
comparison parser-mpcmd.c @ 17472:526abfe30498
Make -list-options work in both MPlayer and MEncoder.
author | albeu |
---|---|
date | Tue, 24 Jan 2006 11:34:24 +0000 |
parents | feb16d0117c8 |
children | df9633d451dc |
comparison
equal
deleted
inserted
replaced
17471:63909962d3fc | 17472:526abfe30498 |
---|---|
134 /* remove trailing '-' */ | 134 /* remove trailing '-' */ |
135 opt++; | 135 opt++; |
136 | 136 |
137 mp_msg(MSGT_CFGPARSER, MSGL_DBG3, "this_opt = option: %s\n", opt); | 137 mp_msg(MSGT_CFGPARSER, MSGL_DBG3, "this_opt = option: %s\n", opt); |
138 // We handle here some specific option | 138 // We handle here some specific option |
139 if(strcasecmp(opt,"list-options") == 0) { | 139 // Loop option when it apply to a group |
140 m_config_print_option_list(config); | 140 if(strcasecmp(opt,"loop") == 0 && |
141 exit(1); | |
142 // Loop option when it apply to a group | |
143 } else if(strcasecmp(opt,"loop") == 0 && | |
144 (! last_entry || last_entry->child) ) { | 141 (! last_entry || last_entry->child) ) { |
145 int l; | 142 int l; |
146 char* end; | 143 char* end; |
147 l = (i+1<argc) ? strtol(argv[i+1],&end,0) : 0; | 144 l = (i+1<argc) ? strtol(argv[i+1],&end,0) : 0; |
148 if(*end != '\0') { | 145 if(*end != '\0') { |