Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
cdb92b0f
Commit
cdb92b0f
authored
Aug 14, 2008
by
Fabio Ritrovato
Committed by
Derk-Jan Hartman
Aug 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Playlist: if we select a node, play it's first child
Signed-off-by:
Derk-Jan Hartman
<
hartman@videolan.org
>
parent
845416de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
src/playlist/control.c
src/playlist/control.c
+16
-2
No files found.
src/playlist/control.c
View file @
cdb92b0f
...
...
@@ -60,7 +60,7 @@ void __pl_Release( vlc_object_t *p_this )
{
playlist_t
*
pl
=
libvlc_priv
(
p_this
->
p_libvlc
)
->
p_playlist
;
assert
(
pl
!=
NULL
);
assert
(
VLC_OBJECT
(
pl
)
!=
p_this
/* The rule is that pl_Release() should act on
the same object than pl_Yield() */
);
...
...
@@ -410,9 +410,23 @@ playlist_item_t * playlist_NextItem( playlist_t *p_playlist )
p_playlist
->
b_reset_currently_playing
=
true
;
}
/* If we are asked for a node,
don't take it
*/
/* If we are asked for a node,
go to it's first child
*/
if
(
i_skip
==
0
&&
(
p_new
==
NULL
||
p_new
->
i_children
!=
-
1
)
)
{
i_skip
++
;
if
(
p_new
!=
NULL
)
{
p_new
=
playlist_GetNextLeaf
(
p_playlist
,
p_new
,
NULL
,
true
,
false
);
for
(
i
=
0
;
i
<
p_playlist
->
current
.
i_size
;
i
++
)
{
if
(
p_new
==
ARRAY_VAL
(
p_playlist
->
current
,
i
)
)
{
p_playlist
->
i_current_index
=
i
;
i_skip
=
0
;
}
}
}
}
if
(
p_playlist
->
b_reset_currently_playing
)
/* A bit too bad to reset twice ... */
...
...
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