Commit e6e564bd authored by Felix Paul Kühne's avatar Felix Paul Kühne

Don't mix 2 implementation approaches

Introduced in the previous commit, pointed by Pierre. Thanks!
parent 6c385c50
...@@ -589,19 +589,16 @@ static int HandleKey( intf_thread_t *p_intf, int i_key ) ...@@ -589,19 +589,16 @@ static int HandleKey( intf_thread_t *p_intf, int i_key )
var_Get( p_playlist, "random", &val ); var_Get( p_playlist, "random", &val );
val.b_bool = !val.b_bool; val.b_bool = !val.b_bool;
var_Set( p_playlist, "random", val ); var_Set( p_playlist, "random", val );
vlc_object_release( p_playlist );
ReturnTrue; ReturnTrue;
case 'l': case 'l':
var_Get( p_playlist, "loop", &val ); var_Get( p_playlist, "loop", &val );
val.b_bool = !val.b_bool; val.b_bool = !val.b_bool;
var_Set( p_playlist, "loop", val ); var_Set( p_playlist, "loop", val );
vlc_object_release( p_playlist );
ReturnTrue; ReturnTrue;
case 'R': case 'R':
var_Get( p_playlist, "repeat", &val ); var_Get( p_playlist, "repeat", &val );
val.b_bool = !val.b_bool; val.b_bool = !val.b_bool;
var_Set( p_playlist, "repeat", val ); var_Set( p_playlist, "repeat", val );
vlc_object_release( p_playlist );
ReturnTrue; ReturnTrue;
/* Playlist sort */ /* Playlist sort */
......
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