Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
6697b0d9
Commit
6697b0d9
authored
Apr 10, 2005
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wx/playlist.cpp: reintroduced the caching in FindItem, giving unknown speed increases
parent
c4017cea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
modules/gui/wxwindows/playlist.cpp
modules/gui/wxwindows/playlist.cpp
+10
-0
No files found.
modules/gui/wxwindows/playlist.cpp
View file @
6697b0d9
...
...
@@ -635,6 +635,10 @@ wxTreeItemId Playlist::FindItem( wxTreeItemId root, int i_id )
wxTreeItemId
dummy
;
return
dummy
;
}
if
(
i_saved_id
==
i_id
)
{
return
saved_tree_item
;
}
if
(
!
p_wxcurrent
)
{
...
...
@@ -644,6 +648,8 @@ wxTreeItemId Playlist::FindItem( wxTreeItemId root, int i_id )
if
(
p_wxcurrent
->
i_id
==
i_id
)
{
i_saved_id
=
i_id
;
saved_tree_item
=
root
;
return
root
;
}
...
...
@@ -652,6 +658,8 @@ wxTreeItemId Playlist::FindItem( wxTreeItemId root, int i_id )
p_wxcurrent
=
(
PlaylistItem
*
)
treectrl
->
GetItemData
(
item
);
if
(
p_wxcurrent
->
i_id
==
i_id
)
{
i_saved_id
=
i_id
;
saved_tree_item
=
item
;
return
item
;
}
if
(
treectrl
->
ItemHasChildren
(
item
)
)
...
...
@@ -659,6 +667,8 @@ wxTreeItemId Playlist::FindItem( wxTreeItemId root, int i_id )
wxTreeItemId
search
=
FindItem
(
item
,
i_id
);
if
(
search
.
IsOk
()
)
{
i_saved_id
=
i_id
;
saved_tree_item
=
search
;
return
search
;
}
}
...
...
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