#include "../vars/playtree.hpp"
-void CmdPlaytreeUpdate::execute()
+void CmdItemUpdate::execute()
{
if( !m_pItem )
return;
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
- CmdPlaytreeUpdate *pUpdateCommand = (CmdPlaytreeUpdate *)(pQueuedCommand);
+ CmdItemUpdate *pUpdateCommand = (CmdItemUpdate *)(pQueuedCommand);
return m_pItem == pUpdateCommand->m_pItem;
}
class VarText;
/// Command to notify the playtree of an item update
-class CmdPlaytreeUpdate: public CmdGeneric
+class CmdItemUpdate: public CmdGeneric
{
public:
- CmdPlaytreeUpdate( intf_thread_t *pIntf, input_item_t* pItem ):
+ CmdItemUpdate( intf_thread_t *pIntf, input_item_t* pItem ):
CmdGeneric( pIntf ), m_pItem( pItem )
{
if( pItem )
vlc_gc_incref( pItem );
}
- virtual ~CmdPlaytreeUpdate()
+ virtual ~CmdItemUpdate()
{
if( m_pItem )
vlc_gc_decref( m_pItem );
input_item_t *p_item = static_cast<input_item_t*>(newval.p_address);
// Create a playtree notify command
- CmdPlaytreeUpdate *pCmdTree = new CmdPlaytreeUpdate( pThis->getIntf(),
+ CmdItemUpdate *pCmdTree = new CmdItemUpdate( pThis->getIntf(),
p_item );
// Push the command in the asynchronous command queue