From 8434b64bf82e3f111ca461a9789707558dff5dd3 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Thu, 31 Oct 2002 16:58:12 +0000 Subject: new syntax for MRLs basic changes: - MRLs are a subset of URIs - important new delimiter is # - everything before the # will be passed to the input plugin - after the # you can add several ;-separated stream parameters: novideo - video will be ignored noaudio - audio will be ignored nospu - spus will be ignored demux:... - specify the demuxer to use (e.g. demux:mpeg_block) entry:value - assign any config entry a new value CVS patchset: 3112 CVS date: 2002/10/31 16:58:12 --- src/xine-engine/configfile.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'src/xine-engine/configfile.c') diff --git a/src/xine-engine/configfile.c b/src/xine-engine/configfile.c index c82bdde17..76c3a293d 100644 --- a/src/xine-engine/configfile.c +++ b/src/xine-engine/configfile.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: configfile.c,v 1.39 2002/10/31 10:45:36 mroi Exp $ + * $Id: configfile.c,v 1.40 2002/10/31 16:58:15 mroi Exp $ * * config object (was: file) management - implementation * @@ -792,13 +792,11 @@ int xine_config_change_opt(config_values_t *config, const char *opt) { printf ("configfile: change_opt '%s'\n", opt); #endif - if(config && opt && (!strncasecmp(opt, "opt:", 4))) { - char *optsafe; + if(config && opt) { char *key, *value; - xine_strdupa(optsafe, opt); - key = &optsafe[4]; - value = strrchr(optsafe, '='); + key = strdup(opt); + value = strrchr(key, ':'); if(key && strlen(key) && value && strlen(value)) { @@ -824,14 +822,14 @@ int xine_config_change_opt(config_values_t *config, const char *opt) { break; case CONFIG_TYPE_UNKNOWN: -#ifdef LOG - printf("configfile: change_opt() try to update an CONFIG_TYPE_UNKNOWN entry\n"); -#endif + entry->unknown_value = strdup(value); + handled = 1; break; } } } + free(key); } return handled; -- cgit v1.2.3