Commit d716c3db authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Use var_GetBool.

parent be05e83b
...@@ -92,7 +92,6 @@ ...@@ -92,7 +92,6 @@
@end @end
/***************************************************************************** /*****************************************************************************
* VLCPlaylistCommon implementation * VLCPlaylistCommon implementation
* *
...@@ -485,22 +484,15 @@ ...@@ -485,22 +484,15 @@
- (void)playModeUpdated - (void)playModeUpdated
{ {
playlist_t *p_playlist = pl_Yield( VLCIntf ); playlist_t *p_playlist = pl_Yield( VLCIntf );
vlc_value_t val, val2;
var_Get( p_playlist, "loop", &val2 ); bool loop = var_GetBool( p_playlist, "loop" );
var_Get( p_playlist, "repeat", &val ); bool repeat = var_GetBool( p_playlist, "repeat" );
if( val.b_bool == true ) if( repeat )
{
[[[VLCMain sharedInstance] getControls] repeatOne]; [[[VLCMain sharedInstance] getControls] repeatOne];
} else if( loop )
else if( val2.b_bool == true )
{
[[[VLCMain sharedInstance] getControls] repeatAll]; [[[VLCMain sharedInstance] getControls] repeatAll];
}
else else
{
[[[VLCMain sharedInstance] getControls] repeatOff]; [[[VLCMain sharedInstance] getControls] repeatOff];
}
[[[VLCMain sharedInstance] getControls] shuffle]; [[[VLCMain sharedInstance] getControls] shuffle];
......
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