fix broken compile
authorS. Davilla <davilla@4pi.com>
Tue, 8 Oct 2013 21:24:11 +0000 (17:24 -0400)
committerS. Davilla <davilla@4pi.com>
Tue, 8 Oct 2013 21:24:45 +0000 (17:24 -0400)
xbmc/Application.cpp

index a840870..7b5b2bf 100644 (file)
@@ -1692,6 +1692,7 @@ bool CApplication::OnSettingUpdate(CSetting* &setting, const char *oldSettingId,
       return true;
     }
   }
+#if defined(HAS_LIBAMCODEC)
   else if (settingId == "videoplayer.useamcodec")
   {
     // Do not permit amcodec to be used on non-aml platforms.
@@ -1703,6 +1704,8 @@ bool CApplication::OnSettingUpdate(CSetting* &setting, const char *oldSettingId,
       useamcodec->SetValue(false);
     }
   }
+#endif
+#if defined(TARGET_ANDROID)
   else if (settingId == "videoplayer.usemediacodec")
   {
     // Do not permit MediaCodec to be used Android platforms that do not have it.
@@ -1714,6 +1717,7 @@ bool CApplication::OnSettingUpdate(CSetting* &setting, const char *oldSettingId,
       usemediacodec->SetValue(false);
     }
   }
+#endif
 
   return false;
 }