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
66db20b6
Commit
66db20b6
authored
May 01, 2009
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow :start-time, :stop-time and :run-time arguments to be float values,
since we may want sub-second granularity.
parent
3092afc3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
12 deletions
+15
-12
src/input/input.c
src/input/input.c
+6
-3
src/input/var.c
src/input/var.c
+3
-3
src/libvlc-module.c
src/libvlc-module.c
+6
-6
No files found.
src/input/input.c
View file @
66db20b6
...
...
@@ -918,9 +918,12 @@ static void StartTitle( input_thread_t * p_input )
input_ControlPush
(
p_input
,
INPUT_CONTROL_SET_SEEKPOINT
,
&
val
);
/* Start/stop/run time */
p_input
->
p
->
i_start
=
INT64_C
(
1000000
)
*
var_GetInteger
(
p_input
,
"start-time"
);
p_input
->
p
->
i_stop
=
INT64_C
(
1000000
)
*
var_GetInteger
(
p_input
,
"stop-time"
);
p_input
->
p
->
i_run
=
INT64_C
(
1000000
)
*
var_GetInteger
(
p_input
,
"run-time"
);
p_input
->
p
->
i_start
=
(
int64_t
)(
1000000
.
0
*
var_GetFloat
(
p_input
,
"start-time"
));
p_input
->
p
->
i_stop
=
(
int64_t
)(
1000000
.
0
*
var_GetFloat
(
p_input
,
"stop-time"
));
p_input
->
p
->
i_run
=
(
int64_t
)(
1000000
.
0
*
var_GetFloat
(
p_input
,
"run-time"
));
if
(
p_input
->
p
->
i_run
<
0
)
{
msg_Warn
(
p_input
,
"invalid run-time ignored"
);
...
...
src/input/var.c
View file @
66db20b6
...
...
@@ -443,9 +443,9 @@ void input_ConfigVarInit ( input_thread_t *p_input )
var_Create
(
p_input
,
"input-repeat"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_input
,
"start-time"
,
VLC_VAR_
INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_input
,
"stop-time"
,
VLC_VAR_
INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_input
,
"run-time"
,
VLC_VAR_
INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_input
,
"start-time"
,
VLC_VAR_
FLOAT
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_input
,
"stop-time"
,
VLC_VAR_
FLOAT
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_input
,
"run-time"
,
VLC_VAR_
FLOAT
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_input
,
"input-fast-seek"
,
VLC_VAR_BOOL
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_input
,
"input-slave"
,
...
...
src/libvlc-module.c
View file @
66db20b6
...
...
@@ -1729,14 +1729,14 @@ vlc_module_begin ()
add_integer
(
"input-repeat"
,
0
,
NULL
,
INPUT_REPEAT_TEXT
,
INPUT_REPEAT_LONGTEXT
,
false
)
change_safe
()
add_
integer
(
"start-time"
,
0
,
NULL
,
START_TIME_TEXT
,
START_TIME_LONGTEXT
,
true
)
add_
float
(
"start-time"
,
0
,
NULL
,
START_TIME_TEXT
,
START_TIME_LONGTEXT
,
true
)
change_safe
()
add_
integer
(
"stop-time"
,
0
,
NULL
,
STOP_TIME_TEXT
,
STOP_TIME_LONGTEXT
,
true
)
add_
float
(
"stop-time"
,
0
,
NULL
,
STOP_TIME_TEXT
,
STOP_TIME_LONGTEXT
,
true
)
change_safe
()
add_
integer
(
"run-time"
,
0
,
NULL
,
RUN_TIME_TEXT
,
RUN_TIME_LONGTEXT
,
true
)
add_
float
(
"run-time"
,
0
,
NULL
,
RUN_TIME_TEXT
,
RUN_TIME_LONGTEXT
,
true
)
change_safe
()
add_bool
(
"input-fast-seek"
,
false
,
NULL
,
INPUT_FAST_SEEK_TEXT
,
INPUT_FAST_SEEK_LONGTEXT
,
false
)
...
...
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