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
1a2ffef2
Commit
1a2ffef2
authored
Mar 24, 2006
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sap.c: Ressucitate --sap-addr for the lucky one with M-Bone and too much sap announces.
parent
c8b5aad6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+12
-1
No files found.
modules/services_discovery/sap.c
View file @
1a2ffef2
...
...
@@ -76,6 +76,10 @@ static const char ipv6_scopes[] = "1456789ABCDE";
/*****************************************************************************
* Module descriptor
*****************************************************************************/
#define SAP_ADDR_TEXT N_( "SAP multicast address" )
#define SAP_ADDR_LONGTEXT N_( "The SAP module normally chooses itself the " \
"good addresses to listen to. However, you can " \
"specify a specific address" )
#define SAP_IPV4_TEXT N_( "IPv4-SAP listening" )
#define SAP_IPV4_LONGTEXT N_( \
"Set this if you want the SAP module to listen to IPv4 announcements " \
...
...
@@ -121,6 +125,8 @@ vlc_module_begin();
set_category
(
CAT_PLAYLIST
);
set_subcategory
(
SUBCAT_PLAYLIST_SD
);
add_string
(
"sap-addr"
,
NULL
,
NULL
,
SAP_ADDR_TEXT
,
SAP_ADDR_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"sap-ipv4"
,
1
,
NULL
,
SAP_IPV4_TEXT
,
SAP_IPV4_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"sap-ipv6"
,
1
,
NULL
,
...
...
@@ -135,7 +141,6 @@ vlc_module_begin();
SAP_CACHE_TEXT
,
SAP_CACHE_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"sap-timeshift"
,
0
,
NULL
,
SAP_TIMESHIFT_TEXT
,
SAP_TIMESHIFT_LONGTEXT
,
VLC_TRUE
);
add_suppressed_string
(
"sap-addr"
);
set_capability
(
"services_discovery"
,
0
);
set_callbacks
(
Open
,
Close
);
...
...
@@ -500,6 +505,12 @@ static void Run( services_discovery_t *p_sd )
}
}
psz_addr
=
var_CreateGetString
(
p_sd
,
"sap-addr"
);
if
(
psz_addr
&&
*
psz_addr
)
{
InitSocket
(
p_sd
,
psz_addr
,
SAP_PORT
);
}
if
(
p_sd
->
p_sys
->
i_fd
==
0
)
{
msg_Err
(
p_sd
,
"unable to listen on any address"
);
...
...
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