Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GSoC
GSoC2018
macOS
vlc
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