From df18de1a68d4c867470d2746254674793866db2f Mon Sep 17 00:00:00 2001
From: Allan Odgaard <git@abetarda.com>
Date: Fri, 14 Feb 2014 00:22:20 +0700
Subject: [PATCH 1/2] Remove redundant check

We only setup the timer if we are configured to control iTunes, so there should be no reason to check that we control iTunes, before we check if we have setup the timer (only to tear it down).

This change is motivated by using the timer to control (other) third party music players.
---
 modules/gui/macosx/intf.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git modules/gui/macosx/intf.m modules/gui/macosx/intf.m
index 5ed847d..0582a2e 100644
--- modules/gui/macosx/intf.m
+++ modules/gui/macosx/intf.m
@@ -1435,7 +1435,7 @@ static VLCMain *_o_sharedMainInstance = nil;
 
     int i_control_itunes = var_InheritInteger(p_intf, "macosx-control-itunes");
     // cancel itunes timer if next item starts playing
-    if (state > -1 && state != END_S && i_control_itunes > 0) {
+    if (state > -1 && state != END_S) {
         if (o_itunes_play_timer) {
             [o_itunes_play_timer invalidate];
             o_itunes_play_timer = nil;
-- 
1.8.5.3

