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
4e490475
Commit
4e490475
authored
Apr 14, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: do not allow negative input-repeat
Was going into infinite loop in that case. refs #14389
parent
adbdc6ba
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
src/input/input.c
src/input/input.c
+1
-1
src/libvlc-module.c
src/libvlc-module.c
+1
-0
No files found.
src/input/input.c
View file @
4e490475
...
@@ -609,7 +609,7 @@ static void MainLoopDemux( input_thread_t *p_input, bool *pb_changed, mtime_t i_
...
@@ -609,7 +609,7 @@ static void MainLoopDemux( input_thread_t *p_input, bool *pb_changed, mtime_t i_
static
int
MainLoopTryRepeat
(
input_thread_t
*
p_input
,
mtime_t
*
pi_start_mdate
)
static
int
MainLoopTryRepeat
(
input_thread_t
*
p_input
,
mtime_t
*
pi_start_mdate
)
{
{
int
i_repeat
=
var_GetInteger
(
p_input
,
"input-repeat"
);
int
i_repeat
=
var_GetInteger
(
p_input
,
"input-repeat"
);
if
(
i_repeat
=
=
0
)
if
(
i_repeat
<
=
0
)
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
vlc_value_t
val
;
vlc_value_t
val
;
...
...
src/libvlc-module.c
View file @
4e490475
...
@@ -1686,6 +1686,7 @@ vlc_module_begin ()
...
@@ -1686,6 +1686,7 @@ vlc_module_begin ()
set_section
(
N_
(
"Playback control"
)
,
NULL
)
set_section
(
N_
(
"Playback control"
)
,
NULL
)
add_integer
(
"input-repeat"
,
0
,
add_integer
(
"input-repeat"
,
0
,
INPUT_REPEAT_TEXT
,
INPUT_REPEAT_LONGTEXT
,
false
)
INPUT_REPEAT_TEXT
,
INPUT_REPEAT_LONGTEXT
,
false
)
change_integer_range
(
0
,
65535
)
change_safe
()
change_safe
()
add_float
(
"start-time"
,
0
,
add_float
(
"start-time"
,
0
,
START_TIME_TEXT
,
START_TIME_LONGTEXT
,
true
)
START_TIME_TEXT
,
START_TIME_LONGTEXT
,
true
)
...
...
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