Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
f61cc2fd
Commit
f61cc2fd
authored
Jul 28, 2003
by
Laurent Aimar
Browse files
* rc: Fixed a bug with seek command.
Added support of "seek n%" (Usefull when mux_rate is nul )
parent
db3c43d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/control/rc/rc.c
View file @
f61cc2fd
...
...
@@ -2,7 +2,7 @@
* rc.c : remote control stdin/stdout plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: rc.c,v 1.3
6
2003/07/2
3
0
1
:1
3:47 gbazin
Exp $
* $Id: rc.c,v 1.3
7
2003/07/2
8
0
7
:1
6:50 fenrir
Exp $
*
* Authors: Peter Surda <shurdeek@panorama.sth.ac.at>
*
...
...
@@ -527,8 +527,19 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
}
else
if
(
!
strcmp
(
psz_cmd
,
"seek"
)
)
{
input_Seek
(
p_input
,
atoi
(
newval
.
psz_string
),
INPUT_SEEK_SECONDS
|
INPUT_SEEK_SET
);
if
(
strlen
(
newval
.
psz_string
)
>
0
&&
newval
.
psz_string
[
strlen
(
newval
.
psz_string
)
-
1
]
==
'%'
)
{
input_Seek
(
p_input
,
atoi
(
newval
.
psz_string
),
INPUT_SEEK_PERCENT
|
INPUT_SEEK_SET
);
}
else
{
input_Seek
(
p_input
,
atoi
(
newval
.
psz_string
),
INPUT_SEEK_SECONDS
|
INPUT_SEEK_SET
);
}
vlc_object_release
(
p_input
);
return
VLC_SUCCESS
;
}
else
if
(
!
strcmp
(
psz_cmd
,
"chapter"
)
||
!
strcmp
(
psz_cmd
,
"chapter_n"
)
||
...
...
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