Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
bda9ff6d
Commit
bda9ff6d
authored
Nov 21, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable rc fastforward and rewind commands for RTSP trickplay.
parent
8623a973
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
modules/control/rc.c
modules/control/rc.c
+22
-4
No files found.
modules/control/rc.c
View file @
bda9ff6d
...
@@ -1085,16 +1085,34 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1085,16 +1085,34 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"fastforward"
)
)
else
if
(
!
strcmp
(
psz_cmd
,
"fastforward"
)
)
{
if
(
var_GetBool
(
p_input
,
"can-rewind"
)
)
{
int
i_rate
=
var_GetInteger
(
p_input
,
"rate"
);
i_rate
=
(
i_rate
<
0
)
?
-
i_rate
:
i_rate
*
2
;
var_SetInteger
(
p_input
,
"rate"
,
i_rate
);
}
else
{
{
val
.
i_int
=
config_GetInt
(
p_intf
,
"key-jump+extrashort"
);
val
.
i_int
=
config_GetInt
(
p_intf
,
"key-jump+extrashort"
);
var_Set
(
p_intf
->
p_libvlc
,
"key-pressed"
,
val
);
var_Set
(
p_intf
->
p_libvlc
,
"key-pressed"
,
val
);
}
vlc_object_release
(
p_input
);
vlc_object_release
(
p_input
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"rewind"
)
)
else
if
(
!
strcmp
(
psz_cmd
,
"rewind"
)
)
{
if
(
var_GetBool
(
p_input
,
"can-rewind"
)
)
{
int
i_rate
=
var_GetInteger
(
p_input
,
"rate"
);
i_rate
=
(
i_rate
>
0
)
?
-
i_rate
:
i_rate
/
2
;
var_SetInteger
(
p_input
,
"rate"
,
i_rate
);
}
else
{
{
val
.
i_int
=
config_GetInt
(
p_intf
,
"key-jump-extrashort"
);
val
.
i_int
=
config_GetInt
(
p_intf
,
"key-jump-extrashort"
);
var_Set
(
p_intf
->
p_libvlc
,
"key-pressed"
,
val
);
var_Set
(
p_intf
->
p_libvlc
,
"key-pressed"
,
val
);
}
vlc_object_release
(
p_input
);
vlc_object_release
(
p_input
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
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