[rbp/omxplayer] Fix build after #3507
authorpopcornmix <popcornmix@gmail.com>
Thu, 14 Nov 2013 15:30:02 +0000 (15:30 +0000)
committerpopcornmix <popcornmix@gmail.com>
Thu, 14 Nov 2013 16:36:41 +0000 (16:36 +0000)
StringUtils::ToLower is void
StringUtils::EqualsNoCase returns bool

xbmc/cores/omxplayer/OMXPlayer.cpp

index 2325b63..c926ee3 100644 (file)
@@ -699,7 +699,7 @@ bool COMXPlayer::OpenInputStream()
   // correct the filename if needed
   CStdString filename(m_filename);
   if (StringUtils::StartsWith(filename, "dvd://")
-  ||  StringUtils::EqualsNoCase(filename, "iso9660://video_ts/video_ts.ifo") == 0)
+  ||  StringUtils::EqualsNoCase(filename, "iso9660://video_ts/video_ts.ifo"))
   {
     m_filename = g_mediaManager.TranslateDevicePath("");
   }
@@ -3295,7 +3295,8 @@ bool COMXPlayer::OpenVideoStream(int iStream, int source, bool reset)
     // for music file, don't open artwork as video
     bool disabled = false;
     CStdString extension = URIUtils::GetExtension(m_filename);
-    if (!extension.empty() && g_advancedSettings.m_musicExtensions.find(StringUtils::ToLower(extension) != std::string::npos)
+    StringUtils::ToLower(extension);
+    if (!extension.empty() && g_advancedSettings.m_musicExtensions.find(extension) != std::string::npos)
     {
       CLog::Log(LOGWARNING, "%s - Ignoring video in audio filetype:%s", __FUNCTION__, m_filename.c_str());
       disabled = true;