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
af10ead7
Commit
af10ead7
authored
Dec 04, 2005
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement playtree.sort() (basic implementation)
Fix a bug in delete
parent
6728be82
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
4 deletions
+14
-4
modules/gui/skins2/commands/cmd_playtree.cpp
modules/gui/skins2/commands/cmd_playtree.cpp
+10
-1
modules/gui/skins2/controls/ctrl_tree.cpp
modules/gui/skins2/controls/ctrl_tree.cpp
+1
-0
modules/gui/skins2/src/skin_main.cpp
modules/gui/skins2/src/skin_main.cpp
+1
-2
modules/gui/skins2/vars/playtree.cpp
modules/gui/skins2/vars/playtree.cpp
+2
-1
No files found.
modules/gui/skins2/commands/cmd_playtree.cpp
View file @
af10ead7
...
...
@@ -32,5 +32,14 @@ void CmdPlaytreeDel::execute()
void
CmdPlaytreeSort
::
execute
()
{
// TODO
// TODO: Choose sort method
playlist_t
*
p_playlist
=
getIntf
()
->
p_sys
->
p_playlist
;
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
playlist_view_t
*
p_view
=
playlist_ViewFind
(
p_playlist
,
p_playlist
->
status
.
i_view
);
playlist_RecursiveNodeSort
(
p_playlist
,
p_view
->
p_root
,
SORT_TITLE
,
ORDER_NORMAL
);
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
// Ask for rebuild
Playtree
&
rVar
=
VlcProc
::
instance
(
getIntf
()
)
->
getPlaytreeVar
();
rVar
.
onChange
();
}
modules/gui/skins2/controls/ctrl_tree.cpp
View file @
af10ead7
...
...
@@ -140,6 +140,7 @@ void CtrlTree::onUpdate( Subject<VarTree, tree_update*> &rTree,
}
else
if
(
arg
->
i_type
==
1
)
// Global change or deletion
{
m_firstPos
=
m_rTree
.
begin
();
makeImage
();
}
else
if
(
arg
->
i_type
==
2
)
// Item-append
...
...
modules/gui/skins2/src/skin_main.cpp
View file @
af10ead7
...
...
@@ -245,8 +245,7 @@ static void Run( intf_thread_t *p_intf )
FIND_ANYWHERE
);
if
(
p_playlist
)
{
p_playlist
->
status
.
i_view
=
-
1
;
playlist_Control
(
p_playlist
,
PLAYLIST_AUTOPLAY
);
playlist_LockControl
(
p_playlist
,
PLAYLIST_AUTOPLAY
);
vlc_object_release
(
p_playlist
);
}
}
...
...
modules/gui/skins2/vars/playtree.cpp
View file @
af10ead7
...
...
@@ -200,6 +200,7 @@ void Playtree::buildTree()
buildNode
(
p_view
->
p_root
,
*
this
);
vlc_mutex_unlock
(
&
m_pPlaylist
->
object_lock
);
checkParents
(
NULL
);
// What is it ?
// checkParents( NULL );
}
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