+ /* Playlist actions */
+ else if( i_action == ACTIONID_LOOP )
+ {
+ /* Toggle Normal -> Loop -> Repeat -> Normal ... */
+ vlc_value_t val2;
+ var_Get( p_playlist, "loop", &val );
+ var_Get( p_playlist, "repeat", &val2 );
+ if( val2.b_bool == true )
+ {
+ val.b_bool = false;
+ val2.b_bool = false;
+ }
+ else if( val.b_bool == true )
+ {
+ val.b_bool = false;
+ val2.b_bool = true;
+ }
+ else
+ {
+ val.b_bool = true;
+ }
+ var_Set( p_playlist, "loop", val );
+ var_Set( p_playlist, "repeat", val2 );
+ }
+ else if( i_action == ACTIONID_RANDOM )
+ {
+ var_Get( p_playlist, "random", &val );
+ val.b_bool = !val.b_bool;
+ var_Set( p_playlist, "random", val );
+ }