diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2002-10-31 16:58:12 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2002-10-31 16:58:12 +0000 |
commit | 8434b64bf82e3f111ca461a9789707558dff5dd3 (patch) | |
tree | c03b8c5961715b410e0d55d1b116c39a797c45f5 /src/xine-engine/configfile.c | |
parent | a3608a5b290a41d0d9614e2316586c220fa7a5e9 (diff) | |
download | xine-lib-8434b64bf82e3f111ca461a9789707558dff5dd3.tar.gz xine-lib-8434b64bf82e3f111ca461a9789707558dff5dd3.tar.bz2 |
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
Diffstat (limited to 'src/xine-engine/configfile.c')
-rw-r--r-- | src/xine-engine/configfile.c | 16 |
1 files changed, 7 insertions, 9 deletions
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; |