diff --git a/src/gui/moviebrowser.cpp b/src/gui/moviebrowser.cpp index a690d1c77..3704dfb50 100644 --- a/src/gui/moviebrowser.cpp +++ b/src/gui/moviebrowser.cpp @@ -65,6 +65,7 @@ #include #include #include +#include #include #include @@ -2311,7 +2312,7 @@ void CMovieBrowser::loadAllTsFileNamesFromStorage(void) static const char * const ext_list[] = { - "avi", "mkv", "mpg", "mpeg", "m2ts", "mp4", "mov", "flv", "iso" + "avi", "mkv", "mp4", "flv", "mov", "mpg", "mpeg", "m2ts", "iso" }; static int ext_list_size = sizeof(ext_list) / sizeof (char *); @@ -2327,10 +2328,8 @@ bool CMovieBrowser::supportedExtension(CFile &file) bool result = (ext == "ts"); if (!result && !m_settings.ts_only) { for (int i = 0; i < ext_list_size; i++) { - if (ext == ext_list[i]) { - result = true; - break; - } + if (!strcasecmp(ext.c_str(), ext_list[i])) + return true; } } return result;