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
8d3b66c7
Commit
8d3b66c7
authored
Nov 17, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added timeshift options (input-timeshift-granularity/input-timeshift-path).
parent
4bdd926e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
6 deletions
+26
-6
src/input/es_out_timeshift.c
src/input/es_out_timeshift.c
+12
-6
src/libvlc-module.c
src/libvlc-module.c
+14
-0
No files found.
src/input/es_out_timeshift.c
View file @
8d3b66c7
...
...
@@ -306,12 +306,18 @@ es_out_t *input_EsOutTimeshiftNew( input_thread_t *p_input, es_out_t *p_next_out
TAB_INIT
(
p_sys
->
i_es
,
p_sys
->
pp_es
);
/* TODO config
* timeshift-granularity
* timeshift-path
*/
p_sys
->
i_tmp_size_max
=
50
*
1024
*
1024
;
p_sys
->
psz_tmp_path
=
GetTmpPath
(
NULL
);
/* */
const
int
i_tmp_size_max
=
var_CreateGetInteger
(
p_input
,
"input-timeshift-granularity"
);
if
(
i_tmp_size_max
<
0
)
p_sys
->
i_tmp_size_max
=
50
*
1024
*
1024
;
else
p_sys
->
i_tmp_size_max
=
__MAX
(
i_tmp_size_max
,
1
*
1024
*
1024
);
msg_Dbg
(
p_input
,
"using timeshift granularity of %d bytes"
,
(
int
)
p_sys
->
i_tmp_size_max
);
char
*
psz_tmp_path
=
var_CreateGetNonEmptyString
(
p_input
,
"input-timeshift-path"
);
p_sys
->
psz_tmp_path
=
GetTmpPath
(
psz_tmp_path
);
msg_Dbg
(
p_input
,
"using timeshift path '%s'"
,
p_sys
->
psz_tmp_path
);
return
p_out
;
}
...
...
src/libvlc-module.c
View file @
8d3b66c7
...
...
@@ -704,6 +704,15 @@ static const char *const ppsz_clock_descriptions[] =
"When possible, the input stream will be recorded instead of using" \
"the stream output module" )
#define INPUT_TIMESHIFT_PATH_TEXT N_("Timeshift directory")
#define INPUT_TIMESHIFT_PATH_LONGTEXT N_( \
"Directory used to store the timeshift temporary files." )
#define INPUT_TIMESHIFT_GRANULARITY_TEXT N_("Timeshift granularity")
#define INPUT_TIMESHIFT_GRANULARITY_LONGTEXT N_( \
"This is the maximum size in bytes of the temporary files " \
"that will be used to store the timeshifted streams." )
// DEPRECATED
#define SUB_CAT_LONGTEXT N_( \
"These options allow you to modify the behavior of the subpictures " \
...
...
@@ -1766,6 +1775,11 @@ vlc_module_begin ()
add_bool
(
"input-record-native"
,
true
,
NULL
,
INPUT_RECORD_NATIVE_TEXT
,
INPUT_RECORD_NATIVE_LONGTEXT
,
true
);
add_string
(
"input-timeshift-path"
,
NULL
,
NULL
,
INPUT_TIMESHIFT_PATH_TEXT
,
INPUT_TIMESHIFT_PATH_LONGTEXT
,
true
);
add_integer
(
"input-timeshift-granularity"
,
-
1
,
NULL
,
INPUT_TIMESHIFT_GRANULARITY_TEXT
,
INPUT_TIMESHIFT_GRANULARITY_LONGTEXT
,
true
);
/* Decoder options */
add_category_hint
(
N_
(
"Decoders"
),
CODEC_CAT_LONGTEXT
,
true
)
add_string
(
"codec"
,
NULL
,
NULL
,
CODEC_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