Lines 136-145
Link Here
|
136 |
* Handle 'cfg:/' mrl style |
136 |
* Handle 'cfg:/' mrl style |
137 |
*/ |
137 |
*/ |
138 |
void config_mrl(const char *mrl) { |
138 |
void config_mrl(const char *mrl) { |
|
|
139 |
xine_cfg_entry_t entry; |
139 |
char *key; |
140 |
char *key; |
140 |
char *config; |
141 |
char *config; |
141 |
char *_mrl; |
142 |
char *_mrl; |
142 |
|
143 |
|
|
|
144 |
if (!xine_config_lookup_entry(fbxine.xine, "misc.implicit_config", &entry) || |
145 |
entry.type != XINE_CONFIG_TYPE_BOOL || !entry.num_value) { |
146 |
fprintf(stderr, "You tried to change the configuration with a cfg: MRL.\n" |
147 |
"This is not allowed unless you enable the 'misc.implicit_config' setting " |
148 |
"after reading and understanding its help text."); |
149 |
return; |
150 |
} |
151 |
|
143 |
xine_strdupa(_mrl, mrl); |
152 |
xine_strdupa(_mrl, mrl); |
144 |
config = strchr(_mrl, '/'); |
153 |
config = strchr(_mrl, '/'); |
145 |
|
154 |
|
Lines 153-159
Link Here
|
153 |
*str_value++ = '\0'; |
162 |
*str_value++ = '\0'; |
154 |
|
163 |
|
155 |
if(str_value && strlen(str_value)) { |
164 |
if(str_value && strlen(str_value)) { |
156 |
xine_cfg_entry_t entry; |
|
|
157 |
|
165 |
|
158 |
if(xine_config_lookup_entry(fbxine.xine, key, &entry)) { |
166 |
if(xine_config_lookup_entry(fbxine.xine, key, &entry)) { |
159 |
|
167 |
|