projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94f8049
)
list mp3 files. we need something better here.
author
Felix Domke
<tmbinc@elitedvb.net>
Tue, 14 Mar 2006 14:38:02 +0000
(14:38 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Tue, 14 Mar 2006 14:38:02 +0000
(14:38 +0000)
lib/service/servicefs.cpp
patch
|
blob
|
history
diff --git
a/lib/service/servicefs.cpp
b/lib/service/servicefs.cpp
index
8254e63
..
2590993
100644
(file)
--- a/
lib/service/servicefs.cpp
+++ b/
lib/service/servicefs.cpp
@@
-129,10
+129,17
@@
RESULT eServiceFS::getContent(std::list<eServiceReference> &list, bool sorted)
list.push_back(service);
} else
{
- /* FIIIIIX ME */
- if (filename.substr(filename.size()-3) == ".ts")
+ std::string extension = filename.substr(filename.rfind('.'));
+ int type = -1;
+
+ if (extension == ".ts")
+ type = eServiceFactoryDVB::id;
+ else if (extension == ".mp3")
+ type = 4097;
+
+ if (type != -1)
{
- eServiceReference service(
eServiceFactoryDVB::id
,
+ eServiceReference service(
type
,
0,
filename);
service.data[0] = 0;