Commit 7a851c17 authored by Erwan Tulou's avatar Erwan Tulou

skins2: cosmetic

parent e843f24f
...@@ -290,15 +290,12 @@ int VlcProc::onItemAppend( vlc_object_t *pObj, const char *pVariable, ...@@ -290,15 +290,12 @@ int VlcProc::onItemAppend( vlc_object_t *pObj, const char *pVariable,
VlcProc *pThis = (VlcProc*)pParam; VlcProc *pThis = (VlcProc*)pParam;
playlist_add_t *p_add = static_cast<playlist_add_t*>(newVal.p_address); playlist_add_t *p_add = static_cast<playlist_add_t*>(newVal.p_address);
CmdPlaytreeAppend *pCmdTree =
CmdGenericPtr ptrTree; new CmdPlaytreeAppend( pThis->getIntf(), p_add );
CmdPlaytreeAppend *pCmdTree = new CmdPlaytreeAppend( pThis->getIntf(),
p_add );
ptrTree = CmdGenericPtr( pCmdTree );
// Push the command in the asynchronous command queue // Push the command in the asynchronous command queue
AsyncQueue *pQueue = AsyncQueue::instance( pThis->getIntf() ); AsyncQueue *pQueue = AsyncQueue::instance( pThis->getIntf() );
pQueue->push( ptrTree , false ); pQueue->push( CmdGenericPtr( pCmdTree ), false );
return VLC_SUCCESS; return VLC_SUCCESS;
} }
...@@ -310,15 +307,12 @@ int VlcProc::onItemDelete( vlc_object_t *pObj, const char *pVariable, ...@@ -310,15 +307,12 @@ int VlcProc::onItemDelete( vlc_object_t *pObj, const char *pVariable,
VlcProc *pThis = (VlcProc*)pParam; VlcProc *pThis = (VlcProc*)pParam;
int i_id = newVal.i_int; int i_id = newVal.i_int;
CmdPlaytreeDelete *pCmdTree =
CmdGenericPtr ptrTree; new CmdPlaytreeDelete( pThis->getIntf(), i_id);
CmdPlaytreeDelete *pCmdTree = new CmdPlaytreeDelete( pThis->getIntf(),
i_id);
ptrTree = CmdGenericPtr( pCmdTree );
// Push the command in the asynchronous command queue // Push the command in the asynchronous command queue
AsyncQueue *pQueue = AsyncQueue::instance( pThis->getIntf() ); AsyncQueue *pQueue = AsyncQueue::instance( pThis->getIntf() );
pQueue->push( ptrTree , false ); pQueue->push( CmdGenericPtr( pCmdTree ), false );
return VLC_SUCCESS; return VLC_SUCCESS;
} }
......
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