Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
096cd15e
Commit
096cd15e
authored
Aug 29, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create 4 common caching parameters (file, capture, disc and network)
parent
80a49e59
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
14 deletions
+29
-14
modules/access/fs.c
modules/access/fs.c
+0
-14
src/libvlc-module.c
src/libvlc-module.c
+29
-0
No files found.
modules/access/fs.c
View file @
096cd15e
...
...
@@ -30,14 +30,6 @@
#include "fs.h"
#include <vlc_plugin.h>
#define CACHING_TEXT N_("Caching value (ms)")
#define CACHING_LONGTEXT N_( \
"Caching value for files, in milliseconds." )
#define NETWORK_CACHING_TEXT N_("Extra network caching value (ms)")
#define NETWORK_CACHING_LONGTEXT N_( \
"Supplementary caching value for remote files, in milliseconds." )
#define RECURSIVE_TEXT N_("Subdirectory behavior")
#define RECURSIVE_LONGTEXT N_( \
"Select whether subdirectories must be expanded.\n" \
...
...
@@ -61,12 +53,6 @@ vlc_module_begin ()
set_shortname
(
N_
(
"File"
)
)
set_category
(
CAT_INPUT
)
set_subcategory
(
SUBCAT_INPUT_ACCESS
)
add_integer
(
"file-caching"
,
DEFAULT_PTS_DELAY
/
1000
,
CACHING_TEXT
,
CACHING_LONGTEXT
,
true
)
change_safe
()
add_integer
(
"network-caching"
,
3
*
DEFAULT_PTS_DELAY
/
1000
,
NETWORK_CACHING_TEXT
,
NETWORK_CACHING_LONGTEXT
,
true
)
change_safe
()
add_obsolete_string
(
"file-cat"
)
set_capability
(
"access"
,
50
)
add_shortcut
(
"file"
,
"fd"
,
"stream"
)
...
...
src/libvlc-module.c
View file @
096cd15e
...
...
@@ -627,6 +627,22 @@ static const char *const ppsz_pos_descriptions[] =
"subsystem, such as the DVD or VCD device, the network interface " \
"settings or the subtitle channel.")
#define CACHING_TEXT N_("File caching (ms)")
#define CACHING_LONGTEXT N_( \
"Caching value for local files, in milliseconds." )
#define CAPTURE_CACHING_TEXT N_("Live capture caching (ms)")
#define CAPTURE_CACHING_LONGTEXT N_( \
"Caching value for cameras and microphones, in milliseconds." )
#define DISC_CACHING_TEXT N_("Disc caching (ms)")
#define DISC_CACHING_LONGTEXT N_( \
"Caching value for optical media, in milliseconds." )
#define NETWORK_CACHING_TEXT N_("Network caching (ms)")
#define NETWORK_CACHING_LONGTEXT N_( \
"Caching value for network resources, in milliseconds." )
#define CR_AVERAGE_TEXT N_("Clock reference average counter")
#define CR_AVERAGE_LONGTEXT N_( \
"When using the PVR input (or a very irregular source), you should " \
...
...
@@ -1895,6 +1911,19 @@ vlc_module_begin ()
set_section
(
N_
(
"Advanced"
),
NULL
)
add_integer
(
"file-caching"
,
DEFAULT_PTS_DELAY
/
1000
,
CACHING_TEXT
,
CACHING_LONGTEXT
,
true
)
change_safe
()
add_integer
(
"capture-caching"
,
DEFAULT_PTS_DELAY
/
1000
,
CAPTURE_CACHING_TEXT
,
CAPTURE_CACHING_LONGTEXT
,
true
)
change_safe
()
add_integer
(
"disc-caching"
,
DEFAULT_PTS_DELAY
/
1000
,
DISC_CACHING_TEXT
,
DISC_CACHING_LONGTEXT
,
true
)
change_safe
()
add_integer
(
"network-caching"
,
CLOCK_FREQ
/
1000
,
NETWORK_CACHING_TEXT
,
NETWORK_CACHING_LONGTEXT
,
true
)
change_safe
()
add_integer
(
"cr-average"
,
40
,
CR_AVERAGE_TEXT
,
CR_AVERAGE_LONGTEXT
,
true
)
add_integer
(
"clock-synchro"
,
-
1
,
CLOCK_SYNCHRO_TEXT
,
...
...
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