vlc | branch: master | Erwan Tulou <[email protected]> | Mon Jan 28 14:32:53 2013 +0100| [317f1e9c019813adfb4380984b501188f1df0637] | committer: Erwan Tulou
skins2: ensure playlist is also updated when new input is launched > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=317f1e9c019813adfb4380984b501188f1df0637 --- modules/gui/skins2/src/vlcproc.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/gui/skins2/src/vlcproc.cpp b/modules/gui/skins2/src/vlcproc.cpp index 7127c62..0900ec0 100644 --- a/modules/gui/skins2/src/vlcproc.cpp +++ b/modules/gui/skins2/src/vlcproc.cpp @@ -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 ) _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
