git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add possibility to view eventinfo in recorded movielist (move cursor to
[enigma2.git]
/
lib
/
service
/
servicefs.cpp
diff --git
a/lib/service/servicefs.cpp
b/lib/service/servicefs.cpp
index 8e5b729bafe2a36eabc8a0c0cc87080d2b2d2cfe..1f65ae1739de0597197133d02047b34fcd10957f 100644
(file)
--- a/
lib/service/servicefs.cpp
+++ b/
lib/service/servicefs.cpp
@@
-96,6
+96,11
@@
eServiceFS::~eServiceFS()
{
}
{
}
+int lower(char c)
+{
+ return std::tolower(static_cast<unsigned char>(c));
+}
+
RESULT eServiceFS::getContent(std::list<eServiceReference> &list, bool sorted)
{
DIR *d=opendir(path.c_str());
RESULT eServiceFS::getContent(std::list<eServiceReference> &list, bool sorted)
{
DIR *d=opendir(path.c_str());
@@
-131,6
+136,7
@@
RESULT eServiceFS::getContent(std::list<eServiceReference> &list, bool sorted)
{
size_t e = filename.rfind('.');
std::string extension = (e != std::string::npos) ? filename.substr(e) : "";
{
size_t e = filename.rfind('.');
std::string extension = (e != std::string::npos) ? filename.substr(e) : "";
+ std::transform(extension.begin(), extension.end(), extension.begin(), lower);
int type = -1;
if (extension == ".ts")
int type = -1;
if (extension == ".ts")