diff options
author | phintuka <phintuka> | 2006-09-10 14:18:50 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2006-09-10 14:18:50 +0000 |
commit | a67e3216cf9ad456e6004961d1c45223b5383238 (patch) | |
tree | 9ddd189eb36d9c0ac707bef5b23d6ca1a4f7e44a /config.c | |
parent | 740596657a74a62e7af427a3a725800fb2d446fd (diff) | |
download | xineliboutput-a67e3216cf9ad456e6004961d1c45223b5383238.tar.gz xineliboutput-a67e3216cf9ad456e6004961d1c45223b5383238.tar.bz2 |
Fixed audio_driver:audio_port parsing
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: config.c,v 1.10 2006-09-03 12:14:39 phintuka Exp $ + * $Id: config.c,v 1.11 2006-09-10 14:18:50 phintuka Exp $ * */ @@ -300,7 +300,15 @@ bool config_t::ProcessArgs(int argc, char *argv[]) // break; case 'V': ProcessArg("Video.Driver", optarg); break; - case 'A': ProcessArg("Audio.Driver", optarg); + case 'A': if(strchr(optarg,':')) { + char *tmp = strdup(optarg); + char *pt = strchr(tmp,':'); + *pt = 0; + ProcessArg("Audio.Driver", tmp); + ProcessArg("Audio.Port", pt+1); + free(tmp); + } else + ProcessArg("Audio.Driver", optarg); break; case 'P': if(post_plugins) post_plugins = strcatrealloc(post_plugins, ";"); |