Commit 29c75ea7 authored by Erwan Tulou's avatar Erwan Tulou

skins2: rename command to better readability

parent d5d09d94
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include "../vars/playtree.hpp" #include "../vars/playtree.hpp"
void CmdPlaytreeUpdate::execute() void CmdItemUpdate::execute()
{ {
if( !m_pItem ) if( !m_pItem )
return; return;
...@@ -43,10 +43,10 @@ void CmdPlaytreeUpdate::execute() ...@@ -43,10 +43,10 @@ void CmdPlaytreeUpdate::execute()
VlcProc::instance( getIntf() )->getPlaytreeVar().onUpdateItem( id ); VlcProc::instance( getIntf() )->getPlaytreeVar().onUpdateItem( id );
} }
bool CmdPlaytreeUpdate::checkRemove( CmdGeneric *pQueuedCommand ) const bool CmdItemUpdate::checkRemove( CmdGeneric *pQueuedCommand ) const
{ {
// We don't use RTTI - Use C-style cast // We don't use RTTI - Use C-style cast
CmdPlaytreeUpdate *pUpdateCommand = (CmdPlaytreeUpdate *)(pQueuedCommand); CmdItemUpdate *pUpdateCommand = (CmdItemUpdate *)(pQueuedCommand);
return m_pItem == pUpdateCommand->m_pItem; return m_pItem == pUpdateCommand->m_pItem;
} }
......
...@@ -39,16 +39,16 @@ class EqualizerPreamp; ...@@ -39,16 +39,16 @@ class EqualizerPreamp;
class VarText; class VarText;
/// Command to notify the playtree of an item update /// Command to notify the playtree of an item update
class CmdPlaytreeUpdate: public CmdGeneric class CmdItemUpdate: public CmdGeneric
{ {
public: public:
CmdPlaytreeUpdate( intf_thread_t *pIntf, input_item_t* pItem ): CmdItemUpdate( intf_thread_t *pIntf, input_item_t* pItem ):
CmdGeneric( pIntf ), m_pItem( pItem ) CmdGeneric( pIntf ), m_pItem( pItem )
{ {
if( pItem ) if( pItem )
vlc_gc_incref( pItem ); vlc_gc_incref( pItem );
} }
virtual ~CmdPlaytreeUpdate() virtual ~CmdItemUpdate()
{ {
if( m_pItem ) if( m_pItem )
vlc_gc_decref( m_pItem ); vlc_gc_decref( m_pItem );
......
...@@ -247,7 +247,7 @@ int VlcProc::onItemChange( vlc_object_t *pObj, const char *pVariable, ...@@ -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); input_item_t *p_item = static_cast<input_item_t*>(newval.p_address);
// Create a playtree notify command // Create a playtree notify command
CmdPlaytreeUpdate *pCmdTree = new CmdPlaytreeUpdate( pThis->getIntf(), CmdItemUpdate *pCmdTree = new CmdItemUpdate( pThis->getIntf(),
p_item ); p_item );
// Push the command in the asynchronous command queue // Push the command in the asynchronous command queue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment