Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
40c292e6
Commit
40c292e6
authored
Feb 08, 2001
by
Renaud Dartus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We can now choose the speed of forward (between 32/1 and 1/8)
Thanks to Meuuh, he's MORTEL ;)
parent
d7eae1f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
include/stream_control.h
include/stream_control.h
+2
-0
plugins/sdl/intf_sdl.c
plugins/sdl/intf_sdl.c
+13
-3
src/input/input_ext-intf.c
src/input/input_ext-intf.c
+4
-1
No files found.
include/stream_control.h
View file @
40c292e6
...
...
@@ -28,3 +28,5 @@ typedef struct stream_ctrl_s
#define START_S 11
#define DEFAULT_RATE 1000
#define MINIMAL_RATE 31
/* Up to 32/1 */
#define MAXIMAL_RATE 8000
/* Up to 1/8 */
plugins/sdl/intf_sdl.c
View file @
40c292e6
...
...
@@ -2,7 +2,7 @@
* intf_sdl.c: SDL interface plugin
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: intf_sdl.c,v 1.2
7 2001/02/07 17:44:52 massiot
Exp $
* $Id: intf_sdl.c,v 1.2
8 2001/02/08 00:46:12 reno
Exp $
*
* Authors:
*
...
...
@@ -110,6 +110,7 @@ void intf_SDLManage( intf_thread_t *p_intf )
{
SDL_Event
event
;
/* SDL event */
Uint8
i_key
;
int
i_rate
;
while
(
SDL_PollEvent
(
&
event
)
)
{
...
...
@@ -148,11 +149,20 @@ void intf_SDLManage( intf_thread_t *p_intf )
break
;
case
SDLK_a
:
input_Forward
(
p_intf
->
p_input
,
DEFAULT_RATE
/
2
);
i_rate
=
p_intf
->
p_input
->
stream
.
control
.
i_rate
;
if
(
i_rate
/
2
>=
MINIMAL_RATE
)
input_Forward
(
p_intf
->
p_input
,
i_rate
/
2
);
break
;
case
SDLK_s
:
input_Forward
(
p_intf
->
p_input
,
DEFAULT_RATE
*
2
);
i_rate
=
p_intf
->
p_input
->
stream
.
control
.
i_rate
;
if
(
i_rate
*
2
<=
MAXIMAL_RATE
)
{
/* Compensation of int truncature */
if
(
i_rate
*
2
>
500
&&
i_rate
*
2
<
1000
)
i_rate
=
1000
/
2
;
input_Forward
(
p_intf
->
p_input
,
i_rate
*
2
);
}
break
;
default:
...
...
src/input/input_ext-intf.c
View file @
40c292e6
...
...
@@ -56,7 +56,10 @@ void input_Play( input_thread_t * p_input )
*****************************************************************************/
void
input_Forward
(
input_thread_t
*
p_input
,
int
i_rate
)
{
intf_Msg
(
"Forward enabled"
);
if
(
i_rate
>
1000
)
intf_Msg
(
"Forward enabled at 1/%d"
,
i_rate
/
1000
);
else
intf_Msg
(
"Forward enabled at %d/1"
,
1000
/
i_rate
);
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
p_input
->
stream
.
i_new_status
=
FORWARD_S
;
p_input
->
stream
.
i_new_rate
=
i_rate
;
...
...
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