Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 48108
Collapse All | Expand All

(-)src/xitk/config_wrapper.c (-1 / +9 lines)
Lines 140-148 Link Here
140
 * Handle 'cfg:/' mrl style
140
 * Handle 'cfg:/' mrl style
141
 */
141
 */
142
void config_mrl(char *mrl) {
142
void config_mrl(char *mrl) {
143
  xine_cfg_entry_t entry;
143
  char *key;
144
  char *key;
144
  char *config;
145
  char *config;
145
  char *_mrl;
146
  char *_mrl;
147
  
148
  if (!xine_config_lookup_entry(gGui->xine, "misc.implicit_config", &entry) ||
149
      entry.type != XINE_CONFIG_TYPE_BOOL || !entry.num_value) {
150
    xine_info(_("You tried to change the configuration with a cfg: MRL.\n"
151
		"This is not allowed unless you enable the 'misc.implicit_config' setting "
152
		"after reading and understanding its help text."));
153
    return;
154
  }
146
155
147
  xine_strdupa(_mrl, mrl);
156
  xine_strdupa(_mrl, mrl);
148
  config = strchr(_mrl, '/');
157
  config = strchr(_mrl, '/');
Lines 157-163 Link Here
157
      *str_value++ = '\0';
166
      *str_value++ = '\0';
158
167
159
    if(str_value && strlen(str_value)) {
168
    if(str_value && strlen(str_value)) {
160
      xine_cfg_entry_t entry;
161
      
169
      
162
      if(xine_config_lookup_entry(gGui->xine, key, &entry)) {
170
      if(xine_config_lookup_entry(gGui->xine, key, &entry)) {
163
171
(-)src/fb/config_wrapper.c (-1 / +9 lines)
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

Return to bug 48108