Commit 30c31e8c authored by Christophe Massiot's avatar Christophe Massiot

New --channelserver switch.

parent 693e4708
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* and spawn threads. * and spawn threads.
***************************************************************************** *****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN * Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: main.c,v 1.121 2001/11/05 15:22:44 massiot Exp $ * $Id: main.c,v 1.122 2001/11/12 12:54:16 massiot Exp $
* *
* Authors: Vincent Seguin <seguin@via.ecp.fr> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -123,6 +123,7 @@ ...@@ -123,6 +123,7 @@
#define OPT_SERVER 171 #define OPT_SERVER 171
#define OPT_PORT 172 #define OPT_PORT 172
#define OPT_BROADCAST 173 #define OPT_BROADCAST 173
#define OPT_CHANNELSERVER 174
#define OPT_INPUT 180 #define OPT_INPUT 180
#define OPT_MOTION 181 #define OPT_MOTION 181
...@@ -210,6 +211,7 @@ static const struct option longopts[] = ...@@ -210,6 +211,7 @@ static const struct option longopts[] =
{ "port", 1, 0, OPT_PORT }, { "port", 1, 0, OPT_PORT },
{ "broadcast", 1, 0, OPT_BROADCAST }, { "broadcast", 1, 0, OPT_BROADCAST },
{ "channels", 0, 0, OPT_CHANNELS }, { "channels", 0, 0, OPT_CHANNELS },
{ "channelserver", 1, 0, OPT_CHANNELSERVER },
/* Synchro options */ /* Synchro options */
{ "synchro", 1, 0, OPT_SYNCHRO }, { "synchro", 1, 0, OPT_SYNCHRO },
...@@ -781,6 +783,9 @@ static int GetConfiguration( int *pi_argc, char *ppsz_argv[], char *ppsz_env[] ) ...@@ -781,6 +783,9 @@ static int GetConfiguration( int *pi_argc, char *ppsz_argv[], char *ppsz_env[] )
case OPT_CHANNELS: /* --channels */ case OPT_CHANNELS: /* --channels */
main_PutIntVariable( INPUT_NETWORK_CHANNEL_VAR, 1 ); main_PutIntVariable( INPUT_NETWORK_CHANNEL_VAR, 1 );
break; break;
case OPT_CHANNELSERVER: /* --channelserver */
main_PutPszVariable( INPUT_CHANNEL_SERVER_VAR, optarg );
break;
case OPT_SERVER: /* --server */ case OPT_SERVER: /* --server */
main_PutPszVariable( INPUT_SERVER_VAR, optarg ); main_PutPszVariable( INPUT_SERVER_VAR, optarg );
break; break;
...@@ -903,6 +908,7 @@ static void Usage( int i_fashion ) ...@@ -903,6 +908,7 @@ static void Usage( int i_fashion )
"\n" "\n"
"\n --input \tinput method" "\n --input \tinput method"
"\n --channels \tenable channels" "\n --channels \tenable channels"
"\n --channelserver <host> \tchannel server address"
"\n --server <host> \tvideo server address" "\n --server <host> \tvideo server address"
"\n --port <port> \tvideo server port" "\n --port <port> \tvideo server port"
"\n --broadcast \tlisten to a broadcast" "\n --broadcast \tlisten to a broadcast"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment