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
12697ee7
Commit
12697ee7
authored
Sep 22, 2006
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input.c: fixed the playback rate (0.5 is half the speed, not twice)
parent
2d6ae8b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/control/input.c
src/control/input.c
+6
-2
No files found.
src/control/input.c
View file @
12697ee7
...
...
@@ -171,7 +171,11 @@ void libvlc_input_set_rate( libvlc_input_t *p_input, float rate,
{
input_thread_t
*
p_input_thread
;
vlc_value_t
val
;
val
.
i_int
=
rate
*
1000
.
0
f
;
if
(
rate
<=
0
)
RAISEVOID
(
"Rate value is invalid"
);
val
.
i_int
=
1000
.
0
f
/
rate
;
p_input_thread
=
libvlc_get_input_thread
(
p_input
,
p_e
);
if
(
libvlc_exception_raised
(
p_e
)
)
return
;
...
...
@@ -192,7 +196,7 @@ float libvlc_input_get_rate( libvlc_input_t *p_input,
var_Get
(
p_input_thread
,
"rate"
,
&
val
);
vlc_object_release
(
p_input_thread
);
return
(
float
)
val
.
i_int
/
1000
.
0
f
;
return
(
float
)
1000
.
0
f
/
val
.
i_int
;
}
int
libvlc_input_get_state
(
libvlc_input_t
*
p_input
,
...
...
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