Commit 25c59e90 authored by Erwan Tulou's avatar Erwan Tulou

skins2: cosmetic (replace \t with 4 spaces)

parent f0270d55
...@@ -39,38 +39,38 @@ void CmdUpdateItem::execute() ...@@ -39,38 +39,38 @@ void CmdUpdateItem::execute()
if( pPlaylist == NULL ) if( pPlaylist == NULL )
return; return;
input_thread_t *p_input = playlist_CurrentInput( pPlaylist ); input_thread_t *p_input = playlist_CurrentInput( pPlaylist );
if( !p_input ) if( !p_input )
return; return;
// Get playlist item information // Get playlist item information
input_item_t *pItem = input_GetItem( p_input ); input_item_t *pItem = input_GetItem( p_input );
char *pszName = input_item_GetName( pItem ); char *pszName = input_item_GetName( pItem );
char *pszUri = input_item_GetURI( pItem ); char *pszUri = input_item_GetURI( pItem );
string name = pszName; string name = pszName;
// XXX: This should be done in VLC core, not here... // XXX: This should be done in VLC core, not here...
// Remove path information if any // Remove path information if any
OSFactory *pFactory = OSFactory::instance( getIntf() ); OSFactory *pFactory = OSFactory::instance( getIntf() );
string::size_type pos = name.rfind( pFactory->getDirSeparator() ); string::size_type pos = name.rfind( pFactory->getDirSeparator() );
if( pos != string::npos ) if( pos != string::npos )
{ {
name = name.substr( pos + 1, name.size() - pos + 1 ); name = name.substr( pos + 1, name.size() - pos + 1 );
} }
UString srcName( getIntf(), name.c_str() ); UString srcName( getIntf(), name.c_str() );
UString srcURI( getIntf(), pszUri ); UString srcURI( getIntf(), pszUri );
free( pszName ); free( pszName );
free( pszUri ); free( pszUri );
// Create commands to update the stream variables // Create commands to update the stream variables
CmdSetText *pCmd1 = new CmdSetText( getIntf(), m_rStreamName, srcName ); CmdSetText *pCmd1 = new CmdSetText( getIntf(), m_rStreamName, srcName );
CmdSetText *pCmd2 = new CmdSetText( getIntf(), m_rStreamURI, srcURI ); CmdSetText *pCmd2 = new CmdSetText( getIntf(), m_rStreamURI, srcURI );
// Push the commands in the asynchronous command queue // Push the commands in the asynchronous command queue
AsyncQueue *pQueue = AsyncQueue::instance( getIntf() ); AsyncQueue *pQueue = AsyncQueue::instance( getIntf() );
pQueue->push( CmdGenericPtr( pCmd1 ), false ); pQueue->push( CmdGenericPtr( pCmd1 ), false );
pQueue->push( CmdGenericPtr( pCmd2 ), false ); pQueue->push( CmdGenericPtr( pCmd2 ), false );
vlc_object_release( p_input ); vlc_object_release( p_input );
} }
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