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
b24d9e0f
Commit
b24d9e0f
authored
Jun 20, 2010
by
Jakob Leben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indentation
parent
afbc7600
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
src/playlist/tree.c
src/playlist/tree.c
+23
-23
No files found.
src/playlist/tree.c
View file @
b24d9e0f
...
@@ -220,17 +220,17 @@ int playlist_NodeInsert( playlist_t *p_playlist,
...
@@ -220,17 +220,17 @@ int playlist_NodeInsert( playlist_t *p_playlist,
int
i_position
)
int
i_position
)
{
{
PL_ASSERT_LOCKED
;
PL_ASSERT_LOCKED
;
(
void
)
p_playlist
;
(
void
)
p_playlist
;
assert
(
p_parent
&&
p_parent
->
i_children
!=
-
1
);
assert
(
p_parent
&&
p_parent
->
i_children
!=
-
1
);
if
(
i_position
==
-
1
)
i_position
=
p_parent
->
i_children
;
if
(
i_position
==
-
1
)
i_position
=
p_parent
->
i_children
;
assert
(
i_position
<=
p_parent
->
i_children
);
assert
(
i_position
<=
p_parent
->
i_children
);
INSERT_ELEM
(
p_parent
->
pp_children
,
INSERT_ELEM
(
p_parent
->
pp_children
,
p_parent
->
i_children
,
p_parent
->
i_children
,
i_position
,
i_position
,
p_item
);
p_item
);
p_item
->
p_parent
=
p_parent
;
p_item
->
p_parent
=
p_parent
;
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
/**
/**
...
@@ -246,18 +246,18 @@ int playlist_NodeRemoveItem( playlist_t *p_playlist,
...
@@ -246,18 +246,18 @@ int playlist_NodeRemoveItem( playlist_t *p_playlist,
playlist_item_t
*
p_parent
)
playlist_item_t
*
p_parent
)
{
{
PL_ASSERT_LOCKED
;
PL_ASSERT_LOCKED
;
(
void
)
p_playlist
;
(
void
)
p_playlist
;
int
ret
=
VLC_EGENERIC
;
int
ret
=
VLC_EGENERIC
;
for
(
int
i
=
0
;
i
<
p_parent
->
i_children
;
i
++
)
for
(
int
i
=
0
;
i
<
p_parent
->
i_children
;
i
++
)
{
{
if
(
p_parent
->
pp_children
[
i
]
==
p_item
)
if
(
p_parent
->
pp_children
[
i
]
==
p_item
)
{
{
REMOVE_ELEM
(
p_parent
->
pp_children
,
p_parent
->
i_children
,
i
);
REMOVE_ELEM
(
p_parent
->
pp_children
,
p_parent
->
i_children
,
i
);
ret
=
VLC_SUCCESS
;
ret
=
VLC_SUCCESS
;
}
}
}
}
if
(
ret
==
VLC_SUCCESS
)
{
if
(
ret
==
VLC_SUCCESS
)
{
assert
(
p_item
->
p_parent
==
p_parent
);
assert
(
p_item
->
p_parent
==
p_parent
);
...
...
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