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
40022577
Commit
40022577
authored
Sep 23, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlm: remove dead code (AFAIK a relative seek does exactly the same thing).
parent
42266200
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
37 deletions
+0
-37
src/input/vlmshell.c
src/input/vlmshell.c
+0
-37
No files found.
src/input/vlmshell.c
View file @
40022577
...
...
@@ -459,43 +459,6 @@ static int ExecuteControl( vlm_t *p_vlm, const char *psz_name, const int i_arg,
i_result
=
VLC_EGENERIC
;
}
}
else
if
(
!
strcmp
(
psz_control
,
"rewind"
)
)
{
if
(
psz_argument
)
{
const
double
d_scale
=
us_atof
(
psz_argument
);
double
d_position
;
vlm_ControlInternal
(
p_vlm
,
VLM_GET_MEDIA_INSTANCE_POSITION
,
p_media
->
cfg
.
id
,
psz_instance
,
&
d_position
);
d_position
-=
(
d_scale
/
1000
.
0
);
if
(
d_position
<
0
.
0
)
d_position
=
0
.
0
;
i_result
=
vlm_ControlInternal
(
p_vlm
,
VLM_SET_MEDIA_INSTANCE_POSITION
,
p_media
->
cfg
.
id
,
psz_instance
,
d_position
);
}
else
{
i_result
=
VLC_EGENERIC
;
}
}
else
if
(
!
strcmp
(
psz_control
,
"forward"
)
)
{
if
(
psz_argument
)
{
const
double
d_scale
=
us_atof
(
psz_argument
);
double
d_position
;
vlm_ControlInternal
(
p_vlm
,
VLM_GET_MEDIA_INSTANCE_POSITION
,
p_media
->
cfg
.
id
,
psz_instance
,
&
d_position
);
d_position
+=
(
d_scale
/
1000
.
0
);
if
(
d_position
>
1
.
0
)
d_position
=
1
.
0
;
i_result
=
vlm_ControlInternal
(
p_vlm
,
VLM_SET_MEDIA_INSTANCE_POSITION
,
p_media
->
cfg
.
id
,
psz_instance
,
d_position
);
}
else
{
i_result
=
VLC_EGENERIC
;
}
}
else
if
(
!
strcmp
(
psz_control
,
"stop"
)
)
{
i_result
=
vlm_ControlInternal
(
p_vlm
,
VLM_STOP_MEDIA_INSTANCE
,
p_media
->
cfg
.
id
,
psz_instance
);
...
...
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