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
f0a1e2f0
Commit
f0a1e2f0
authored
Mar 25, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Strings review in services_discovery + remove unimplemented sap-cache option (Refs:#438)
parent
1a2ffef2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
14 deletions
+21
-14
modules/services_discovery/hal.c
modules/services_discovery/hal.c
+1
-1
modules/services_discovery/podcast.c
modules/services_discovery/podcast.c
+3
-2
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+17
-11
No files found.
modules/services_discovery/hal.c
View file @
f0a1e2f0
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
static
void
Close
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
vlc_module_begin
();
vlc_module_begin
();
set_description
(
_
(
"HAL device detection"
)
);
set_description
(
_
(
"HAL device
s
detection"
)
);
set_category
(
CAT_PLAYLIST
);
set_category
(
CAT_PLAYLIST
);
set_subcategory
(
SUBCAT_PLAYLIST_SD
);
set_subcategory
(
SUBCAT_PLAYLIST_SD
);
...
...
modules/services_discovery/podcast.c
View file @
f0a1e2f0
...
@@ -55,11 +55,12 @@
...
@@ -55,11 +55,12 @@
static
void
Close
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
#define URLS_TEXT N_("Podcast URLs list")
#define URLS_TEXT N_("Podcast URLs list")
#define URLS_LONGTEXT N_("Podcast '|' (pipe) seperated URLs list")
#define URLS_LONGTEXT N_("Enter the list of podcasts to retrieve, " \
"separated by '|' (pipe)." )
vlc_module_begin
();
vlc_module_begin
();
set_shortname
(
"Podcast"
);
set_shortname
(
"Podcast"
);
set_description
(
_
(
"Podcast
Service Discovery
"
)
);
set_description
(
_
(
"Podcast
s
"
)
);
set_category
(
CAT_PLAYLIST
);
set_category
(
CAT_PLAYLIST
);
set_subcategory
(
SUBCAT_PLAYLIST_SD
);
set_subcategory
(
SUBCAT_PLAYLIST_SD
);
...
...
modules/services_discovery/sap.c
View file @
f0a1e2f0
...
@@ -78,13 +78,13 @@ static const char ipv6_scopes[] = "1456789ABCDE";
...
@@ -78,13 +78,13 @@ static const char ipv6_scopes[] = "1456789ABCDE";
*****************************************************************************/
*****************************************************************************/
#define SAP_ADDR_TEXT N_( "SAP multicast address" )
#define SAP_ADDR_TEXT N_( "SAP multicast address" )
#define SAP_ADDR_LONGTEXT N_( "The SAP module normally chooses itself the " \
#define SAP_ADDR_LONGTEXT N_( "The SAP module normally chooses itself the " \
"
good addresses to listen to. However, you can
" \
"
right addresses to listen to. However, you
" \
"specify a specific address" )
"
can
specify a specific address" )
#define SAP_IPV4_TEXT N_( "IPv4
-SAP listening
" )
#define SAP_IPV4_TEXT N_( "IPv4
SAP
" )
#define SAP_IPV4_LONGTEXT N_( \
#define SAP_IPV4_LONGTEXT N_( \
"Set this if you want the SAP module to listen to IPv4 announcements " \
"Set this if you want the SAP module to listen to IPv4 announcements " \
"on the standard address." )
"on the standard address." )
#define SAP_IPV6_TEXT N_( "IPv6
-SAP listening
" )
#define SAP_IPV6_TEXT N_( "IPv6
SAP
" )
#define SAP_IPV6_LONGTEXT N_( \
#define SAP_IPV6_LONGTEXT N_( \
"Set this if you want the SAP module to listen to IPv6 announcements " \
"Set this if you want the SAP module to listen to IPv6 announcements " \
"on the standard address." )
"on the standard address." )
...
@@ -97,21 +97,21 @@ static const char ipv6_scopes[] = "1456789ABCDE";
...
@@ -97,21 +97,21 @@ static const char ipv6_scopes[] = "1456789ABCDE";
"is received." )
"is received." )
#define SAP_PARSE_TEXT N_( "Try to parse the SAP" )
#define SAP_PARSE_TEXT N_( "Try to parse the SAP" )
#define SAP_PARSE_LONGTEXT N_( \
#define SAP_PARSE_LONGTEXT N_( \
"When SAP can it will try to parse the SAP. If you don't select " \
"This enables actual parsing of the announces by the SAP module. " \
"this, all announcements will be parsed by the livedotcom module." )
"Otherwise, all announcements are parsed by the \"livedotcom\" " \
"(RTP/RTSP) module." )
#define SAP_STRICT_TEXT N_( "SAP Strict mode" )
#define SAP_STRICT_TEXT N_( "SAP Strict mode" )
#define SAP_STRICT_LONGTEXT N_( \
#define SAP_STRICT_LONGTEXT N_( \
"When this is set, the SAP parser will discard some non-compliant " \
"When this is set, the SAP parser will discard some non-compliant " \
"announcements." )
"announcements." )
#define SAP_CACHE_TEXT N_("Use SAP cache")
#define SAP_CACHE_TEXT N_("Use SAP cache")
#define SAP_CACHE_LONGTEXT N_( \
#define SAP_CACHE_LONGTEXT N_( \
"
If this option is selected, a SAP caching mechanism will be used
. " \
"
This enables a SAP caching mechanism
. " \
"This will result in lower SAP startup time, but you could end up " \
"This will result in lower SAP startup time, but you could end up " \
"with items corresponding to legacy streams." )
"with items corresponding to legacy streams." )
#define SAP_TIMESHIFT_TEXT N_("Allow timeshifting")
#define SAP_TIMESHIFT_TEXT N_("Allow timeshifting")
#define SAP_TIMESHIFT_LONGTEXT N_( \
#define SAP_TIMESHIFT_LONGTEXT N_( "This automatically enables timeshifting " \
"Enable timeshifting automatically for streams " \
"for streams discovered through SAP announcements." )
"discovered through SAP announcements." )
/* Callbacks */
/* Callbacks */
static
int
Open
(
vlc_object_t
*
);
static
int
Open
(
vlc_object_t
*
);
...
@@ -137,8 +137,10 @@ vlc_module_begin();
...
@@ -137,8 +137,10 @@ vlc_module_begin();
SAP_PARSE_TEXT
,
SAP_PARSE_LONGTEXT
,
VLC_TRUE
);
SAP_PARSE_TEXT
,
SAP_PARSE_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"sap-strict"
,
0
,
NULL
,
add_bool
(
"sap-strict"
,
0
,
NULL
,
SAP_STRICT_TEXT
,
SAP_STRICT_LONGTEXT
,
VLC_TRUE
);
SAP_STRICT_TEXT
,
SAP_STRICT_LONGTEXT
,
VLC_TRUE
);
#if 0
add_bool( "sap-cache", 0 , NULL,
add_bool( "sap-cache", 0 , NULL,
SAP_CACHE_TEXT,SAP_CACHE_LONGTEXT, VLC_TRUE );
SAP_CACHE_TEXT,SAP_CACHE_LONGTEXT, VLC_TRUE );
#endif
add_bool
(
"sap-timeshift"
,
0
,
NULL
,
add_bool
(
"sap-timeshift"
,
0
,
NULL
,
SAP_TIMESHIFT_TEXT
,
SAP_TIMESHIFT_LONGTEXT
,
VLC_TRUE
);
SAP_TIMESHIFT_TEXT
,
SAP_TIMESHIFT_LONGTEXT
,
VLC_TRUE
);
...
@@ -294,10 +296,12 @@ static int Open( vlc_object_t *p_this )
...
@@ -294,10 +296,12 @@ static int Open( vlc_object_t *p_this )
p_sys
->
b_strict
=
var_CreateGetInteger
(
p_sd
,
"sap-strict"
);
p_sys
->
b_strict
=
var_CreateGetInteger
(
p_sd
,
"sap-strict"
);
p_sys
->
b_parse
=
var_CreateGetInteger
(
p_sd
,
"sap-parse"
);
p_sys
->
b_parse
=
var_CreateGetInteger
(
p_sd
,
"sap-parse"
);
#if 0
if( var_CreateGetInteger( p_sd, "sap-cache" ) )
if( var_CreateGetInteger( p_sd, "sap-cache" ) )
{
{
CacheLoad( p_sd );
CacheLoad( p_sd );
}
}
#endif
/* Cache sap_timeshift value */
/* Cache sap_timeshift value */
p_sys
->
b_timeshift
=
var_CreateGetInteger
(
p_sd
,
"sap-timeshift"
)
p_sys
->
b_timeshift
=
var_CreateGetInteger
(
p_sd
,
"sap-timeshift"
)
...
@@ -439,10 +443,12 @@ static void Close( vlc_object_t *p_this )
...
@@ -439,10 +443,12 @@ static void Close( vlc_object_t *p_this )
}
}
FREE
(
p_sys
->
pi_fd
);
FREE
(
p_sys
->
pi_fd
);
#if 0
if( config_GetInt( p_sd, "sap-cache" ) )
if( config_GetInt( p_sd, "sap-cache" ) )
{
{
CacheSave( p_sd );
CacheSave( p_sd );
}
}
#endif
for
(
i
=
p_sys
->
i_announces
-
1
;
i
>=
0
;
i
--
)
for
(
i
=
p_sys
->
i_announces
-
1
;
i
>=
0
;
i
--
)
{
{
...
...
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