vlc_mutex_init_recursive( &lock );
- CONNECT( THEMIM->getIM(), voutListChanged( vout_thread_t **, int ),
- this, setVoutList( vout_thread_t **, int ) );
+ DCONNECT( THEMIM->getIM(), voutListChanged( vout_thread_t **, int ),
+ this, setVoutList( vout_thread_t **, int ) );
/* First Move */
QRect rect1 = getSettings()->value( "FullScreen/screen" ).toRect();
/* Change the SpeedRate in the Status Bar */
CONNECT( THEMIM->getIM(), rateChanged( int ), this, setRate( int ) );
- CONNECT( THEMIM, inputChanged( input_thread_t * ),
- speedControl, activateOnState() );
+ DCONNECT( THEMIM, inputChanged( input_thread_t * ),
+ speedControl, activateOnState() );
}
SpeedLabel::~SpeedLabel()
rightPanel = new StandardPLPanel( this, p_intf, THEPL, p_root );
/* Connect the activation of the selector to a redefining of the PL */
- CONNECT( selector, activated( playlist_item_t * ),
- rightPanel, setRoot( playlist_item_t * ) );
+ DCONNECT( selector, activated( playlist_item_t * ),
+ rightPanel, setRoot( playlist_item_t * ) );
rightPanel->setRoot( p_root );
#undef ADD_ICON
rebuild( p_root );
- CONNECT( THEMIM->getIM(), metaChanged( input_item_t *),
- this, processInputItemUpdate( input_item_t *) );
- CONNECT( THEMIM, inputChanged( input_thread_t * ),
- this, processInputItemUpdate( input_thread_t* ) );
+ DCONNECT( THEMIM->getIM(), metaChanged( input_item_t *),
+ this, processInputItemUpdate( input_item_t *) );
+ DCONNECT( THEMIM, inputChanged( input_thread_t * ),
+ this, processInputItemUpdate( input_thread_t* ) );
CONNECT( THEMIM, playlistItemAppended( int, int ),
this, processItemAppend( int, int ) );
CONNECT( THEMIM, playlistItemRemoved( int ),
this, plItemAdded( int, int ) );
CONNECT( THEMIM, playlistItemRemoved( int ),
this, plItemRemoved( int ) );
- CONNECT( THEMIM->getIM(), metaChanged( input_item_t *),
- this, inputItemUpdate( input_item_t * ) );
+ DCONNECT( THEMIM->getIM(), metaChanged( input_item_t *),
+ this, inputItemUpdate( input_item_t * ) );
createItems();
CONNECT( this, itemActivated( QTreeWidgetItem *, int ),
getSettings()->endGroup();
- CONNECT( THEMIM, leafBecameParent( input_item_t *),
- this, browseInto( input_item_t * ) );
+ DCONNECT( THEMIM, leafBecameParent( input_item_t *),
+ this, browseInto( input_item_t * ) );
CONNECT( model, currentChanged( const QModelIndex& ),
this, handleExpansion( const QModelIndex& ) );
* Connects on the various signals of input_Manager
* For the currently playing element
**/
- CONNECT( THEMIM->getIM(), infoChanged( input_item_t* ),
- IP, update( input_item_t* ) );
- CONNECT( THEMIM->getIM(), currentMetaChanged( input_item_t* ),
- MP, update( input_item_t* ) );
- CONNECT( THEMIM->getIM(), currentMetaChanged( input_item_t* ),
- EMP, update( input_item_t* ) );
- CONNECT( THEMIM->getIM(), statisticsUpdated( input_item_t* ),
- ISP, update( input_item_t* ) );
+ DCONNECT( THEMIM->getIM(), infoChanged( input_item_t* ),
+ IP, update( input_item_t* ) );
+ DCONNECT( THEMIM->getIM(), currentMetaChanged( input_item_t* ),
+ MP, update( input_item_t* ) );
+ DCONNECT( THEMIM->getIM(), currentMetaChanged( input_item_t* ),
+ EMP, update( input_item_t* ) );
+ DCONNECT( THEMIM->getIM(), statisticsUpdated( input_item_t* ),
+ ISP, update( input_item_t* ) );
if( THEMIM->getInput() )
p_item = input_GetItem( THEMIM->getInput() );
menuMapper = new QSignalMapper( this );
CONNECT( menuMapper, mapped( int ), this, triggerMenu( int ) );
CONNECT( THEMIM->getIM(), statusChanged( int ), this, playingChanged( int ) );
- CONNECT( THEMIM, inputChanged( input_thread_t* ),
- this, inputChanged( input_thread_t* ) );
+ DCONNECT( THEMIM, inputChanged( input_thread_t* ),
+ this, inputChanged( input_thread_t* ) );
b_unloading = false;
b_failed = false;
}
var_AddCallback( THEPL, "volume-muted", SoundMuteChanged, this );
/* Warn our embedded IM about input changes */
- CONNECT( this, inputChanged( input_thread_t * ),
- im, setInput( input_thread_t * ) );
+ DCONNECT( this, inputChanged( input_thread_t * ),
+ im, setInput( input_thread_t * ) );
/* emit check if playlist has already started playing */
input_thread_t *p_input = playlist_CurrentInput( THEPL );
#define qtr( i ) QString::fromUtf8( vlc_gettext(i) )
#define qtu( i ) ((i).toUtf8().constData())
-#define CONNECT( a, b, c, d ) connect( a, SIGNAL( b ), c, SLOT(d) )
+#define CONNECT( a, b, c, d ) \
+ connect( a, SIGNAL( b ), c, SLOT(d) )
+#define DCONNECT( a, b, c, d ) \
+ connect( a, SIGNAL( b ), c, SLOT(d), Qt::DirectConnection )
#define BUTTONACT( b, a ) connect( b, SIGNAL( clicked() ), this, SLOT(a) )
#define BUTTON_SET( button, text, tooltip ) \