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
56c907c6
Commit
56c907c6
authored
Mar 02, 2010
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check rate value before using.
parent
0888d465
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/input/input.c
src/input/input.c
+7
-2
No files found.
src/input/input.c
View file @
56c907c6
...
...
@@ -349,8 +349,13 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
p_input
->
p
->
title
=
NULL
;
p_input
->
p
->
i_title_offset
=
p_input
->
p
->
i_seekpoint_offset
=
0
;
p_input
->
p
->
i_state
=
INIT_S
;
p_input
->
p
->
i_rate
=
INPUT_RATE_DEFAULT
/
var_InheritFloat
(
p_input
,
"rate"
);
double
f_rate
=
var_InheritFloat
(
p_input
,
"rate"
);
if
(
f_rate
<=
0
.
)
{
msg_Warn
(
p_input
,
"Negative or zero rate values are forbidden"
);
f_rate
=
1
.;
}
p_input
->
p
->
i_rate
=
INPUT_RATE_DEFAULT
/
f_rate
;
p_input
->
p
->
b_recording
=
false
;
memset
(
&
p_input
->
p
->
bookmark
,
0
,
sizeof
(
p_input
->
p
->
bookmark
)
);
TAB_INIT
(
p_input
->
p
->
i_bookmark
,
p_input
->
p
->
pp_bookmark
);
...
...
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