Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
abc84401
Commit
abc84401
authored
Feb 23, 2010
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: consistently change input item type when subitems are added
parent
dfebdb6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
src/input/item.c
src/input/item.c
+0
-4
src/playlist/item.c
src/playlist/item.c
+10
-2
No files found.
src/input/item.c
View file @
abc84401
...
...
@@ -254,10 +254,6 @@ static void post_subitems( input_item_node_t *p_node )
* the input item children. */
void
input_item_PostSubItem
(
input_item_t
*
p_parent
,
input_item_t
*
p_child
)
{
vlc_mutex_lock
(
&
p_parent
->
lock
);
p_parent
->
i_type
=
ITEM_TYPE_PLAYLIST
;
vlc_mutex_unlock
(
&
p_parent
->
lock
);
input_item_node_t
*
p_node
=
input_item_node_Create
(
p_parent
);
input_item_node_AppendItem
(
p_node
,
p_child
);
input_item_node_PostAndDelete
(
p_node
);
...
...
src/playlist/item.c
View file @
abc84401
...
...
@@ -755,8 +755,16 @@ static void AddItem( playlist_t *p_playlist, playlist_item_t *p_item,
static
void
ChangeToNode
(
playlist_t
*
p_playlist
,
playlist_item_t
*
p_item
)
{
int
i
;
if
(
p_item
->
i_children
==
-
1
)
p_item
->
i_children
=
0
;
if
(
p_item
->
i_children
!=
-
1
)
return
;
p_item
->
i_children
=
0
;
input_item_t
*
p_input
=
p_item
->
p_input
;
vlc_mutex_lock
(
&
p_input
->
lock
);
p_input
->
i_type
=
ITEM_TYPE_NODE
;
vlc_mutex_unlock
(
&
p_input
->
lock
);
var_SetAddress
(
p_playlist
,
"item-change"
,
p_item
->
p_input
);
/* Remove it from the array of available items */
ARRAY_BSEARCH
(
p_playlist
->
items
,
->
i_id
,
int
,
p_item
->
i_id
,
i
);
...
...
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