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
5c573b07
Commit
5c573b07
authored
Aug 05, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: simplify set_relative_playlist_position_and_play()
parent
e15851d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
lib/media_list_player.c
lib/media_list_player.c
+9
-16
No files found.
lib/media_list_player.c
View file @
5c573b07
...
...
@@ -733,25 +733,18 @@ static int set_relative_playlist_position_and_play(
{
bool
b_loop
=
(
p_mlp
->
e_playback_mode
==
libvlc_playback_mode_loop
);
if
(
i_relative_position
>
0
)
while
(
i_relative_position
>
0
)
{
do
{
path
=
get_next_path
(
p_mlp
,
b_loop
);
set_current_playing_item
(
p_mlp
,
path
);
--
i_relative_position
;
}
while
(
i_relative_position
>
0
);
path
=
get_next_path
(
p_mlp
,
b_loop
);
set_current_playing_item
(
p_mlp
,
path
);
--
i_relative_position
;
}
else
if
(
i_relative_position
<
0
)
while
(
i_relative_position
<
0
)
{
do
{
path
=
get_previous_path
(
p_mlp
,
b_loop
);
set_current_playing_item
(
p_mlp
,
path
);
++
i_relative_position
;
}
while
(
i_relative_position
<
0
);
path
=
get_previous_path
(
p_mlp
,
b_loop
);
set_current_playing_item
(
p_mlp
,
path
);
++
i_relative_position
;
}
}
else
...
...
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