Commit 9204240c authored by Felix Paul Kühne's avatar Felix Paul Kühne

* save playback styles on Macs as well

parent c03721fb
...@@ -161,10 +161,12 @@ ...@@ -161,10 +161,12 @@
if( val.b_bool ) if( val.b_bool )
{ {
vout_OSDMessage( p_intf, DEFAULT_CHAN, _( "Random On" ) ); vout_OSDMessage( p_intf, DEFAULT_CHAN, _( "Random On" ) );
config_PutInt( p_playlist, "random", 1 );
} }
else else
{ {
vout_OSDMessage( p_intf, DEFAULT_CHAN, _( "Random Off" ) ); vout_OSDMessage( p_intf, DEFAULT_CHAN, _( "Random Off" ) );
config_PutInt( p_playlist, "random", 0 );
} }
p_intf->p_sys->b_playmode_update = VLC_TRUE; p_intf->p_sys->b_playmode_update = VLC_TRUE;
...@@ -193,12 +195,14 @@ ...@@ -193,12 +195,14 @@
if( val.b_bool ) if( val.b_bool )
{ {
vout_OSDMessage( p_intf, DEFAULT_CHAN, _( "Repeat One" ) ); vout_OSDMessage( p_intf, DEFAULT_CHAN, _( "Repeat One" ) );
config_PutInt( p_playlist, "repeat", 1 );
} }
else else
{ {
vout_OSDMessage( p_intf, DEFAULT_CHAN, _( "Repeat Off" ) ); vout_OSDMessage( p_intf, DEFAULT_CHAN, _( "Repeat Off" ) );
config_PutInt( p_playlist, "repeat", 0 );
} }
p_intf->p_sys->b_playmode_update = VLC_TRUE; p_intf->p_sys->b_playmode_update = VLC_TRUE;
p_intf->p_sys->b_intf_update = VLC_TRUE; p_intf->p_sys->b_intf_update = VLC_TRUE;
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
...@@ -225,10 +229,12 @@ ...@@ -225,10 +229,12 @@
if( val.b_bool ) if( val.b_bool )
{ {
vout_OSDMessage( p_intf, DEFAULT_CHAN, _( "Repeat All" ) ); vout_OSDMessage( p_intf, DEFAULT_CHAN, _( "Repeat All" ) );
config_PutInt( p_playlist, "loop", 1 );
} }
else else
{ {
vout_OSDMessage( p_intf, DEFAULT_CHAN, _( "Repeat Off" ) ); vout_OSDMessage( p_intf, DEFAULT_CHAN, _( "Repeat Off" ) );
config_PutInt( p_playlist, "loop", 0 );
} }
p_intf->p_sys->b_playmode_update = VLC_TRUE; p_intf->p_sys->b_playmode_update = VLC_TRUE;
......
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