From 76fbb79a4e36a3cbefba97b6953fe90229b0b6a2 Mon Sep 17 00:00:00 2001 From: phintuka Date: Wed, 20 Sep 2006 07:01:10 +0000 Subject: separate device from option video_drv:video_dev --- xine_frontend_main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xine_frontend_main.c b/xine_frontend_main.c index 4b1670ae..799b11d3 100644 --- a/xine_frontend_main.c +++ b/xine_frontend_main.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_frontend_main.c,v 1.14 2006-09-19 00:56:13 phintuka Exp $ + * $Id: xine_frontend_main.c,v 1.15 2006-09-20 07:01:10 phintuka Exp $ * */ @@ -275,6 +275,12 @@ int main(int argc, char *argv[]) printf("Audio device: %s\n",adev); break; case 'V': gdrv = strdup(optarg); + if(strchr(gdrv, ':')) { + video_port = strchr(gdrv, ':'); + *video_port = 0; + video_port++; + printf("Video port: %s\n",video_port); + } printf("Video driver: %s\n",gdrv); break; case 'd': video_port = strdup(optarg); -- cgit v1.2.3