]> git.sesse.net Git - vlc/commitdiff
skins2: ensure playlist is also updated when new input is launched
authorErwan Tulou <erwan10@videolan.org>
Mon, 28 Jan 2013 13:32:53 +0000 (14:32 +0100)
committerErwan Tulou <erwan10@videolan.org>
Mon, 28 Jan 2013 14:18:43 +0000 (15:18 +0100)
modules/gui/skins2/src/vlcproc.cpp

index 7127c625e3e649ed2a8c9bdbb323c79f05fcd7cf..0900ec01835089aca70f828d4aecd32ed88410f7 100644 (file)
@@ -453,7 +453,12 @@ void VlcProc::on_intf_event_changed( vlc_object_t* p_obj, vlc_value_t newVal )
         getIntf()->p_sys->p_input = pInput;
         vlc_object_hold( pInput );
 
+        // update global variables pertaining to this input
         update_current_input();
+
+        // ensure the playtree is also updated
+        // (highlights the new item to be played back)
+        getPlaytreeVar().onUpdateCurrent( true );
     }
 
     switch( newVal.i_int )