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
f61cc2fd
Commit
f61cc2fd
authored
Jul 28, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* rc: Fixed a bug with seek command.
Added support of "seek n%" (Usefull when mux_rate is nul )
parent
db3c43d7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
modules/control/rc/rc.c
modules/control/rc/rc.c
+14
-3
No files found.
modules/control/rc/rc.c
View file @
f61cc2fd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* rc.c : remote control stdin/stdout plugin for vlc
* rc.c : remote control stdin/stdout plugin for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: rc.c,v 1.3
6 2003/07/23 01:13:47 gbazin
Exp $
* $Id: rc.c,v 1.3
7 2003/07/28 07:16:50 fenrir
Exp $
*
*
* Authors: Peter Surda <shurdeek@panorama.sth.ac.at>
* Authors: Peter Surda <shurdeek@panorama.sth.ac.at>
*
*
...
@@ -526,10 +526,21 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -526,10 +526,21 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"seek"
)
)
else
if
(
!
strcmp
(
psz_cmd
,
"seek"
)
)
{
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
(
p_input
,
atoi
(
newval
.
psz_string
),
INPUT_SEEK_SECONDS
|
INPUT_SEEK_SET
);
INPUT_SEEK_SECONDS
|
INPUT_SEEK_SET
);
}
}
vlc_object_release
(
p_input
);
return
VLC_SUCCESS
;
}
else
if
(
!
strcmp
(
psz_cmd
,
"chapter"
)
||
else
if
(
!
strcmp
(
psz_cmd
,
"chapter"
)
||
!
strcmp
(
psz_cmd
,
"chapter_n"
)
||
!
strcmp
(
psz_cmd
,
"chapter_n"
)
||
!
strcmp
(
psz_cmd
,
"chapter_p"
)
)
!
strcmp
(
psz_cmd
,
"chapter_p"
)
)
...
...
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