Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
9d8d50a8
Commit
9d8d50a8
authored
Oct 26, 2000
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
. ajout de l'option --broadcast en ligne de commande
parent
a43bce4e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
include/config.h.in
include/config.h.in
+4
-0
src/input/input_network.c
src/input/input_network.c
+6
-0
src/interface/main.c
src/interface/main.c
+7
-0
No files found.
include/config.h.in
View file @
9d8d50a8
...
@@ -214,6 +214,10 @@
...
@@ -214,6 +214,10 @@
#define INPUT_PORT_VAR "vlc_server_port"
#define INPUT_PORT_VAR "vlc_server_port"
#define INPUT_PORT_DEFAULT 1234
#define INPUT_PORT_DEFAULT 1234
/* Broadcast mode */
#define INPUT_BROADCAST_VAR "vlc_broadcast"
#define INPUT_BROADCAST_DEFAULT 0
/*
/*
* Vlan method
* Vlan method
*/
*/
...
...
src/input/input_network.c
View file @
9d8d50a8
...
@@ -125,6 +125,12 @@ int input_NetworkOpen( input_thread_t *p_input )
...
@@ -125,6 +125,12 @@ int input_NetworkOpen( input_thread_t *p_input )
p_input
->
i_port
=
main_GetIntVariable
(
INPUT_PORT_VAR
,
INPUT_PORT_DEFAULT
);
p_input
->
i_port
=
main_GetIntVariable
(
INPUT_PORT_VAR
,
INPUT_PORT_DEFAULT
);
}
}
/* See if the user requested broadcast method */
if
(
main_GetIntVariable
(
INPUT_BROADCAST_VAR
,
INPUT_BROADCAST_DEFAULT
)
)
{
p_input
->
i_method
=
INPUT_METHOD_TS_BCAST
;
}
/* Find the address. */
/* Find the address. */
switch
(
p_input
->
i_method
)
switch
(
p_input
->
i_method
)
{
{
...
...
src/interface/main.c
View file @
9d8d50a8
...
@@ -79,6 +79,7 @@
...
@@ -79,6 +79,7 @@
#define OPT_NOVLANS 170
#define OPT_NOVLANS 170
#define OPT_SERVER 171
#define OPT_SERVER 171
#define OPT_PORT 172
#define OPT_PORT 172
#define OPT_BROADCAST 173
#define OPT_SYNCHRO 180
#define OPT_SYNCHRO 180
...
@@ -122,6 +123,7 @@ static const struct option longopts[] =
...
@@ -122,6 +123,7 @@ static const struct option longopts[] =
{
"novlans"
,
0
,
0
,
OPT_NOVLANS
},
{
"novlans"
,
0
,
0
,
OPT_NOVLANS
},
{
"server"
,
1
,
0
,
OPT_SERVER
},
{
"server"
,
1
,
0
,
OPT_SERVER
},
{
"port"
,
1
,
0
,
OPT_PORT
},
{
"port"
,
1
,
0
,
OPT_PORT
},
{
"broadcast"
,
0
,
0
,
OPT_BROADCAST
},
/* Synchro options */
/* Synchro options */
{
"synchro"
,
1
,
0
,
OPT_SYNCHRO
},
{
"synchro"
,
1
,
0
,
OPT_SYNCHRO
},
...
@@ -541,6 +543,9 @@ static int GetConfiguration( int i_argc, char *ppsz_argv[], char *ppsz_env[] )
...
@@ -541,6 +543,9 @@ static int GetConfiguration( int i_argc, char *ppsz_argv[], char *ppsz_env[] )
case
OPT_PORT
:
/* --port */
case
OPT_PORT
:
/* --port */
main_PutPszVariable
(
INPUT_PORT_VAR
,
optarg
);
main_PutPszVariable
(
INPUT_PORT_VAR
,
optarg
);
break
;
break
;
case
OPT_BROADCAST
:
/* --broadcast */
main_PutIntVariable
(
INPUT_BROADCAST_VAR
,
1
);
break
;
/* Synchro options */
/* Synchro options */
case
OPT_SYNCHRO
:
case
OPT_SYNCHRO
:
...
@@ -604,6 +609,7 @@ static void Usage( int i_fashion )
...
@@ -604,6 +609,7 @@ static void Usage( int i_fashion )
" --novlans
\t
disable vlans
\n
"
" --novlans
\t
disable vlans
\n
"
" --server <host>
\t
video server address
\n
"
" --server <host>
\t
video server address
\n
"
" --port <port>
\t
video server port
\n
"
" --port <port>
\t
video server port
\n
"
" --broadcast
\t
listen to a broadcast
\n
"
"
\n
"
"
\n
"
" --synchro <type>
\t
force synchro algorithm
\n
"
" --synchro <type>
\t
force synchro algorithm
\n
"
"
\n
"
"
\n
"
...
@@ -651,6 +657,7 @@ static void Usage( int i_fashion )
...
@@ -651,6 +657,7 @@ static void Usage( int i_fashion )
" "
INPUT_SERVER_VAR
"=<hostname>
\t
video server
\n
"
" "
INPUT_SERVER_VAR
"=<hostname>
\t
video server
\n
"
" "
INPUT_PORT_VAR
"=<port>
\t
video server port
\n
"
" "
INPUT_PORT_VAR
"=<port>
\t
video server port
\n
"
" "
INPUT_IFACE_VAR
"=<interface>
\t
network interface
\n
"
" "
INPUT_IFACE_VAR
"=<interface>
\t
network interface
\n
"
" "
INPUT_BROADCAST_VAR
"={1|0}
\t
broadcast mode
\n
"
" "
INPUT_VLAN_SERVER_VAR
"=<hostname>
\t
vlan server
\n
"
" "
INPUT_VLAN_SERVER_VAR
"=<hostname>
\t
vlan server
\n
"
" "
INPUT_VLAN_PORT_VAR
"=<port>
\t
vlan server port
\n
"
);
" "
INPUT_VLAN_PORT_VAR
"=<port>
\t
vlan server port
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment