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
29c75ea7
Commit
29c75ea7
authored
Jan 28, 2013
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins2: rename command to better readability
parent
d5d09d94
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
modules/gui/skins2/commands/cmd_vars.cpp
modules/gui/skins2/commands/cmd_vars.cpp
+3
-3
modules/gui/skins2/commands/cmd_vars.hpp
modules/gui/skins2/commands/cmd_vars.hpp
+3
-3
modules/gui/skins2/src/vlcproc.cpp
modules/gui/skins2/src/vlcproc.cpp
+1
-1
No files found.
modules/gui/skins2/commands/cmd_vars.cpp
View file @
29c75ea7
...
...
@@ -28,7 +28,7 @@
#include "../vars/playtree.hpp"
void
Cmd
Playtree
Update
::
execute
()
void
Cmd
Item
Update
::
execute
()
{
if
(
!
m_pItem
)
return
;
...
...
@@ -43,10 +43,10 @@ void CmdPlaytreeUpdate::execute()
VlcProc
::
instance
(
getIntf
()
)
->
getPlaytreeVar
().
onUpdateItem
(
id
);
}
bool
Cmd
Playtree
Update
::
checkRemove
(
CmdGeneric
*
pQueuedCommand
)
const
bool
Cmd
Item
Update
::
checkRemove
(
CmdGeneric
*
pQueuedCommand
)
const
{
// We don't use RTTI - Use C-style cast
Cmd
PlaytreeUpdate
*
pUpdateCommand
=
(
CmdPlaytree
Update
*
)(
pQueuedCommand
);
Cmd
ItemUpdate
*
pUpdateCommand
=
(
CmdItem
Update
*
)(
pQueuedCommand
);
return
m_pItem
==
pUpdateCommand
->
m_pItem
;
}
...
...
modules/gui/skins2/commands/cmd_vars.hpp
View file @
29c75ea7
...
...
@@ -39,16 +39,16 @@ class EqualizerPreamp;
class
VarText
;
/// Command to notify the playtree of an item update
class
Cmd
Playtree
Update
:
public
CmdGeneric
class
Cmd
Item
Update
:
public
CmdGeneric
{
public:
Cmd
Playtree
Update
(
intf_thread_t
*
pIntf
,
input_item_t
*
pItem
)
:
Cmd
Item
Update
(
intf_thread_t
*
pIntf
,
input_item_t
*
pItem
)
:
CmdGeneric
(
pIntf
),
m_pItem
(
pItem
)
{
if
(
pItem
)
vlc_gc_incref
(
pItem
);
}
virtual
~
Cmd
Playtree
Update
()
virtual
~
Cmd
Item
Update
()
{
if
(
m_pItem
)
vlc_gc_decref
(
m_pItem
);
...
...
modules/gui/skins2/src/vlcproc.cpp
View file @
29c75ea7
...
...
@@ -247,7 +247,7 @@ int VlcProc::onItemChange( vlc_object_t *pObj, const char *pVariable,
input_item_t
*
p_item
=
static_cast
<
input_item_t
*>
(
newval
.
p_address
);
// Create a playtree notify command
Cmd
PlaytreeUpdate
*
pCmdTree
=
new
CmdPlaytree
Update
(
pThis
->
getIntf
(),
Cmd
ItemUpdate
*
pCmdTree
=
new
CmdItem
Update
(
pThis
->
getIntf
(),
p_item
);
// Push the command in the asynchronous command queue
...
...
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