- /* Create the main Update function with a time (150ms) */
- if( mainInput ) {
- ON_TIMEOUT( update() );
- var_AddCallback( THEPL, "item-change", ItemChanged, this );
+ /* If using the General Mode */
+ if( isMainInputInfo )
+ {
+ msg_Dbg( p_intf, "Using a general info windows" );
+ /**
+ * 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* ) );
+
+ if( THEMIM->getInput() )
+ p_item = input_GetItem( THEMIM->getInput() );