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
668d0c89
Commit
668d0c89
authored
Nov 09, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add missing option
parent
382926a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+9
-2
No files found.
modules/services_discovery/sap.c
View file @
668d0c89
...
@@ -83,6 +83,11 @@
...
@@ -83,6 +83,11 @@
#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 " \
"When SAP can it will try to parse the SAP. If you don't select " \
"this, all announces will be parsed by the livedotcom module" )
"this, all announces will be parsed by the livedotcom module" )
#define SAP_CACHE_TEXT N_("Use SAP cache")
#define SAP_CACHE_LONGTEXT N_( \
"If this option is selected, a SAP caching mechanism will be used." \
"This will result in lower SAP startup time, but you could end up " \
"with items corresponding to legacy streams." )
/* Callbacks */
/* Callbacks */
static
int
Open
(
vlc_object_t
*
);
static
int
Open
(
vlc_object_t
*
);
...
@@ -105,6 +110,8 @@ vlc_module_begin();
...
@@ -105,6 +110,8 @@ vlc_module_begin();
SAP_TIMEOUT_TEXT
,
SAP_TIMEOUT_LONGTEXT
,
VLC_TRUE
);
SAP_TIMEOUT_TEXT
,
SAP_TIMEOUT_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"sap-parse"
,
1
,
NULL
,
add_bool
(
"sap-parse"
,
1
,
NULL
,
SAP_PARSE_TEXT
,
SAP_PARSE_LONGTEXT
,
VLC_TRUE
);
SAP_PARSE_TEXT
,
SAP_PARSE_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"sap-cache"
,
0
,
NULL
,
SAP_CACHE_TEXT
,
SAP_CACHE_LONGTEXT
,
VLC_TRUE
);
set_capability
(
"services_discovery"
,
0
);
set_capability
(
"services_discovery"
,
0
);
set_callbacks
(
Open
,
Close
);
set_callbacks
(
Open
,
Close
);
...
@@ -243,7 +250,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -243,7 +250,7 @@ static int Open( vlc_object_t *p_this )
/* FIXME */
/* FIXME */
p_sys
->
b_strict
=
VLC_FALSE
;
p_sys
->
b_strict
=
VLC_FALSE
;
if
(
config_GetInt
(
p_sd
,
"sap-
use-
cache"
)
)
if
(
config_GetInt
(
p_sd
,
"sap-cache"
)
)
{
{
CacheLoad
(
p_sd
);
CacheLoad
(
p_sd
);
}
}
...
@@ -331,7 +338,7 @@ static void Close( vlc_object_t *p_this )
...
@@ -331,7 +338,7 @@ static void Close( vlc_object_t *p_this )
net_Close
(
p_sys
->
pi_fd
[
i
]
);
net_Close
(
p_sys
->
pi_fd
[
i
]
);
}
}
if
(
config_GetInt
(
p_sd
,
"sap-
use-
cache"
)
)
if
(
config_GetInt
(
p_sd
,
"sap-cache"
)
)
{
{
CacheSave
(
p_sd
);
CacheSave
(
p_sd
);
}
}
...
...
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