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
b630fa63
Commit
b630fa63
authored
Jan 15, 2011
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins2: remove unnecessary lookup
parent
1c41fce0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
modules/gui/skins2/vars/playtree.cpp
modules/gui/skins2/vars/playtree.cpp
+11
-15
No files found.
modules/gui/skins2/vars/playtree.cpp
View file @
b630fa63
...
...
@@ -210,24 +210,20 @@ void Playtree::onAppend( playlist_add_t *p_add )
Iterator
node
=
findById
(
p_add
->
i_node
);
if
(
node
!=
end
()
)
{
Iterator
item
=
findById
(
p_add
->
i_item
);
if
(
item
==
end
()
)
playlist_Lock
(
m_pPlaylist
);
playlist_item_t
*
p_item
=
playlist_ItemGetById
(
m_pPlaylist
,
p_add
->
i_item
);
if
(
!
p_item
)
{
playlist_Lock
(
m_pPlaylist
);
playlist_item_t
*
p_item
=
playlist_ItemGetById
(
m_pPlaylist
,
p_add
->
i_item
);
if
(
!
p_item
)
{
playlist_Unlock
(
m_pPlaylist
);
return
;
}
UString
*
pName
=
new
UString
(
getIntf
(),
p_item
->
p_input
->
psz_name
);
node
->
add
(
p_add
->
i_item
,
UStringPtr
(
pName
),
false
,
false
,
false
,
p_item
->
i_flags
&
PLAYLIST_RO_FLAG
,
p_item
);
playlist_Unlock
(
m_pPlaylist
);
return
;
}
UString
*
pName
=
new
UString
(
getIntf
(),
p_item
->
p_input
->
psz_name
);
node
->
add
(
p_add
->
i_item
,
UStringPtr
(
pName
),
false
,
false
,
false
,
p_item
->
i_flags
&
PLAYLIST_RO_FLAG
,
p_item
);
playlist_Unlock
(
m_pPlaylist
);
}
tree_update
descr
;
descr
.
i_id
=
p_add
->
i_item
;
...
...
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