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
f400b143
Commit
f400b143
authored
Nov 21, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add can-rate to distinguish between normal rate control and negative playback direction.
parent
3db7bce2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
modules/control/rc.c
modules/control/rc.c
+1
-1
src/input/input.c
src/input/input.c
+2
-0
src/input/var.c
src/input/var.c
+3
-0
No files found.
modules/control/rc.c
View file @
f400b143
...
...
@@ -1086,7 +1086,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
}
else
if
(
!
strcmp
(
psz_cmd
,
"fastforward"
)
)
{
if
(
var_GetBool
(
p_input
,
"can-r
ewind
"
)
)
if
(
var_GetBool
(
p_input
,
"can-r
ate
"
)
)
{
int
i_rate
=
var_GetInteger
(
p_input
,
"rate"
);
i_rate
=
(
i_rate
<
0
)
?
-
i_rate
:
i_rate
*
2
;
...
...
src/input/input.c
View file @
f400b143
...
...
@@ -2381,6 +2381,7 @@ static int InputSourceInit( input_thread_t *p_input,
&
in
->
b_can_pause
)
)
in
->
b_can_pause
=
false
;
var_SetBool
(
p_input
,
"can-pause"
,
in
->
b_can_pause
||
!
in
->
b_can_pace_control
);
/* XXX temporary because of es_out_timeshift*/
var_SetBool
(
p_input
,
"can-rate"
,
!
in
->
b_can_pace_control
||
in
->
b_can_rate_control
);
/* XXX temporary because of es_out_timeshift*/
var_SetBool
(
p_input
,
"can-rewind"
,
!
in
->
b_rescale_ts
&&
!
in
->
b_can_pace_control
);
int
ret
=
demux_Control
(
in
->
p_demux
,
DEMUX_CAN_SEEK
,
...
...
@@ -2466,6 +2467,7 @@ static int InputSourceInit( input_thread_t *p_input,
access_Control
(
in
->
p_access
,
ACCESS_CAN_PAUSE
,
&
in
->
b_can_pause
);
var_SetBool
(
p_input
,
"can-pause"
,
in
->
b_can_pause
||
!
in
->
b_can_pace_control
);
/* XXX temporary because of es_out_timeshift*/
var_SetBool
(
p_input
,
"can-rate"
,
!
in
->
b_can_pace_control
||
in
->
b_can_rate_control
);
/* XXX temporary because of es_out_timeshift*/
var_SetBool
(
p_input
,
"can-rewind"
,
!
in
->
b_rescale_ts
&&
!
in
->
b_can_pace_control
);
access_Control
(
in
->
p_access
,
ACCESS_CAN_SEEK
,
...
...
src/input/var.c
View file @
f400b143
...
...
@@ -479,6 +479,9 @@ void input_ConfigVarInit ( input_thread_t *p_input )
var_Create
(
p_input
,
"can-pause"
,
VLC_VAR_BOOL
);
var_SetBool
(
p_input
,
"can-pause"
,
true
);
/* Fixed later*/
var_Create
(
p_input
,
"can-rate"
,
VLC_VAR_BOOL
);
var_SetBool
(
p_input
,
"can-rate"
,
false
);
var_Create
(
p_input
,
"can-rewind"
,
VLC_VAR_BOOL
);
var_SetBool
(
p_input
,
"can-rewind"
,
false
);
...
...
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