Fix missing right parenthesis in conditional compilation; Also, should use strcasecmp vs. strcmp when comparing for matches in extension
This commit is contained in:
parent
08539e3e77
commit
492518a43a
@ -433,29 +433,29 @@ inline bool CMediaPlayer::showMediaFiles(const char *mediaPath)
|
|||||||
|
|
||||||
FAR const char *extension = std::strchr(direntry->d_name, '.');
|
FAR const char *extension = std::strchr(direntry->d_name, '.');
|
||||||
if (!extension || (true
|
if (!extension || (true
|
||||||
#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_AC3
|
#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_AC3)
|
||||||
&& std::strcmp(extension, ".ac3") != 0
|
&& std::strcasecmp(extension, ".ac3") != 0
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_DTS
|
#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_DTS)
|
||||||
&& std::strcmp(extension, ".dts") != 0
|
&& std::strcasecmp(extension, ".dts") != 0
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_WAV
|
#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_WAV)
|
||||||
&& std::strcmp(extension, ".wav") != 0
|
&& std::strcasecmp(extension, ".wav") != 0
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_PCM
|
#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_PCM)
|
||||||
&& std::strcmp(extension, ".pcm") != 0
|
&& std::strcasecmp(extension, ".pcm") != 0
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_MP3
|
#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_MP3)
|
||||||
&& std::strcmp(extension, ".mp3") != 0
|
&& std::strcasecmp(extension, ".mp3") != 0
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_MIDI
|
#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_MIDI)
|
||||||
&& sstd::trcmp(extension, ".mid") != 0
|
&& std::strcasecmp(extension, ".mid") != 0
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_WMA
|
#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_WMA)
|
||||||
&& std::strcmp(extension, ".wma") != 0
|
&& std::strcasecmp(extension, ".wma") != 0
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_OGGVORBIS
|
#if defined(CONFIG_NXWM_MEDIAPLAYER_FILTER_OGGVORBIS)
|
||||||
&& std::strcmp(extension, ".ogg") != 0
|
&& std::strcasecmp(extension, ".ogg") != 0
|
||||||
#endif
|
#endif
|
||||||
))
|
))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user