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
d46336c6
Commit
d46336c6
authored
Feb 17, 2010
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: fix first subitem added as last and refactor
parent
c2078b66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
src/playlist/item.c
src/playlist/item.c
+16
-13
No files found.
src/playlist/item.c
View file @
d46336c6
...
...
@@ -63,9 +63,9 @@ static void input_item_add_subitem_tree ( const vlc_event_t * p_event,
playlist_item_t
*
p_parent
=
p_item
->
p_parent
;
assert
(
p_parent
!=
NULL
);
bool
b_
play
=
var_CreateGetBool
(
p_playlist
,
"playlist-autostart"
)
&&
get_current_status_item
(
p_playlist
)
==
p_item
;
bool
b_stop
=
b_play
&&
p_item
->
i_flags
&
PLAYLIST_SUBITEM_STOP_FLAG
;
bool
b_
current
=
get_current_status_item
(
p_playlist
)
==
p_item
;
bool
b_autostart
=
var_CreateGetBool
(
p_playlist
,
"playlist-autostart"
)
;
bool
b_stop
=
p_item
->
i_flags
&
PLAYLIST_SUBITEM_STOP_FLAG
;
p_item
->
i_flags
&=
~
PLAYLIST_SUBITEM_STOP_FLAG
;
int
pos
=
0
;
...
...
@@ -98,20 +98,23 @@ static void input_item_add_subitem_tree ( const vlc_event_t * p_event,
}
else
p_item
=
playlist_InsertInputItemTree
(
p_playlist
,
p_item
,
p_new_root
,
p_item
->
i_children
,
false
);
p_new_root
,
PLAYLIST_END
,
false
);
if
(
!
b_flat
)
var_SetAddress
(
p_playlist
,
"leaf-to-parent"
,
p_input
);
if
(
b_
stop
&&
!
b_fla
t
)
if
(
b_
curren
t
)
{
PL_UNLOCK
;
playlist_Stop
(
p_playlist
);
return
;
}
else
if
(
b_play
)
{
playlist_Control
(
p_playlist
,
PLAYLIST_VIEWPLAY
,
pl_Locked
,
get_current_status_node
(
p_playlist
),
p_item
);
if
(
b_stop
||
!
b_autostart
)
{
PL_UNLOCK
;
playlist_Stop
(
p_playlist
);
return
;
}
else
{
playlist_Control
(
p_playlist
,
PLAYLIST_VIEWPLAY
,
pl_Locked
,
get_current_status_node
(
p_playlist
),
p_item
);
}
}
PL_UNLOCK
;
...
...
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