Commit 1a12ab42 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: non-sense way of getting current playlist item

We want the current playing item, rather than the number of items to
choose from. Besides, item-current is _not_ a choice list anyway.
parent ae1239f0
......@@ -884,10 +884,8 @@ MainInputManager::MainInputManager( intf_thread_t *_p_intf )
im, setInput( input_thread_t * ) );
/* emit check if playlist has allready started playing */
vlc_value_t val;
var_Change( THEPL, "item-current", VLC_VAR_CHOICESCOUNT, &val, NULL );
IMEvent *event = new IMEvent( ItemChanged_Type, val.i_int);
IMEvent *event = new IMEvent( ItemChanged_Type,
var_GetInteger( THEPL, "item-current" ) );
customEvent( event );
delete event;
}
......
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