summaryrefslogtreecommitdiff
path: root/NxWidgets
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-23 17:20:52 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-23 17:20:52 -0600
commita2f3576b95cf969a21a0a80ccfb08c024d699aa1 (patch)
treebc13223475edae2a3ff93da82309ee96c0aa5d95 /NxWidgets
parentc8bfb5f2fedf65e424d54542a17ed8eec2da5a3c (diff)
downloadnuttx-a2f3576b95cf969a21a0a80ccfb08c024d699aa1.tar.gz
nuttx-a2f3576b95cf969a21a0a80ccfb08c024d699aa1.tar.bz2
nuttx-a2f3576b95cf969a21a0a80ccfb08c024d699aa1.zip
Fix missing right parenthesis in conditional compilation; Also, should use strcasecmp vs. strcmp when comparing for matches in extension
Diffstat (limited to 'NxWidgets')
-rw-r--r--NxWidgets/nxwm/src/cmediaplayer.cxx32
1 files changed, 16 insertions, 16 deletions
diff --git a/NxWidgets/nxwm/src/cmediaplayer.cxx b/NxWidgets/nxwm/src/cmediaplayer.cxx
index c3df41c8c..d94b57369 100644
--- a/NxWidgets/nxwm/src/cmediaplayer.cxx
+++ b/NxWidgets/nxwm/src/cmediaplayer.cxx
@@ -433,29 +433,29 @@ inline bool CMediaPlayer::showMediaFiles(const char *mediaPath)
FAR const char *extension = std::strchr(direntry->d_name, '.');
if (!extension || (true
-#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_AC3
- && std::strcmp(extension, ".ac3") != 0
+#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_AC3)
+ && std::strcasecmp(extension, ".ac3") != 0
#endif
-#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_DTS
- && std::strcmp(extension, ".dts") != 0
+#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_DTS)
+ && std::strcasecmp(extension, ".dts") != 0
#endif
-#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_WAV
- && std::strcmp(extension, ".wav") != 0
+#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_WAV)
+ && std::strcasecmp(extension, ".wav") != 0
#endif
-#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_PCM
- && std::strcmp(extension, ".pcm") != 0
+#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_PCM)
+ && std::strcasecmp(extension, ".pcm") != 0
#endif
-#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_MP3
- && std::strcmp(extension, ".mp3") != 0
+#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_MP3)
+ && std::strcasecmp(extension, ".mp3") != 0
#endif
-#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_MIDI
- && sstd::trcmp(extension, ".mid") != 0
+#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_MIDI)
+ && std::strcasecmp(extension, ".mid") != 0
#endif
-#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_WMA
- && std::strcmp(extension, ".wma") != 0
+#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_WMA)
+ && std::strcasecmp(extension, ".wma") != 0
#endif
-#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_OGGVORBIS
- && std::strcmp(extension, ".ogg") != 0
+#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_OGGVORBIS)
+ && std::strcasecmp(extension, ".ogg") != 0
#endif
))
{