git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
theoretic support for PiP (will be fixed)
[enigma2.git]
/
lib
/
service
/
servicefs.cpp
diff --git
a/lib/service/servicefs.cpp
b/lib/service/servicefs.cpp
index 2590993a315c1571500a1c43136dc7a93094e586..3e2f97b3f3845ba1b4bb7ff6619639b17355f439 100644
(file)
--- a/
lib/service/servicefs.cpp
+++ b/
lib/service/servicefs.cpp
@@
-129,13
+129,22
@@
RESULT eServiceFS::getContent(std::list<eServiceReference> &list, bool sorted)
list.push_back(service);
} else
{
list.push_back(service);
} else
{
- std::string extension = filename.substr(filename.rfind('.'));
+ size_t e = filename.rfind('.');
+ std::string extension = (e != std::string::npos) ? filename.substr(e) : "";
int type = -1;
if (extension == ".ts")
type = eServiceFactoryDVB::id;
else if (extension == ".mp3")
type = 4097;
int type = -1;
if (extension == ".ts")
type = eServiceFactoryDVB::id;
else if (extension == ".mp3")
type = 4097;
+ else if (extension == ".ogg")
+ type = 4097;
+ else if (extension == ".mpg")
+ type = 4097;
+ else if (extension == ".vob")
+ type = 4097;
+ else if (extension == ".wav" || extension == ".wave")
+ type = 4097;
if (type != -1)
{
if (type != -1)
{