add seekTitle to iSeekableService interface
[enigma2.git] / lib / service / servicemp3.cpp
index bd92cf2..f74cc8d 100644 (file)
@@ -20,7 +20,16 @@ eServiceFactoryMP3::eServiceFactoryMP3()
        
        eServiceCenter::getPrivInstance(sc);
        if (sc)
-               sc->addServiceFactory(eServiceFactoryMP3::id, this);
+       {
+               std::list<std::string> extensions;
+               extensions.push_back("mp3");
+               extensions.push_back("ogg");
+               extensions.push_back("mpg");
+               extensions.push_back("vob");
+               extensions.push_back("wav");
+               extensions.push_back("wave");
+               sc->addServiceFactory(eServiceFactoryMP3::id, this, extensions);
+       }
 
        m_service_info = new eStaticServiceMP3Info();
 }
@@ -496,7 +505,7 @@ RESULT eServiceMP3::info(ePtr<iServiceInformation>&i)
 RESULT eServiceMP3::getName(std::string &name)
 {
        name = m_filename;
-       int n = name.rfind('/');
+       size_t n = name.rfind('/');
        if (n != std::string::npos)
                name = name.substr(n + 1);
        return 0;