add seekTitle to iSeekableService interface
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 21 Apr 2008 13:09:09 +0000 (13:09 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 21 Apr 2008 13:09:09 +0000 (13:09 +0000)
add default implementation for seekTitle and seekChapter

lib/service/iservice.h
lib/service/servicedvb.cpp
lib/service/servicedvb.h
lib/service/servicemp3.cpp
lib/service/servicemp3.h

index 054e222..dac3984 100644 (file)
@@ -420,7 +420,8 @@ public:
                   audio will be switched off, sync will be disabled etc. */
        virtual RESULT setTrickmode(int trick=0)=0;
        virtual RESULT isCurrentlySeekable()=0;
                   audio will be switched off, sync will be disabled etc. */
        virtual RESULT setTrickmode(int trick=0)=0;
        virtual RESULT isCurrentlySeekable()=0;
-       virtual RESULT seekChapter(int chapter)=0;      
+       virtual RESULT seekChapter(int chapter) { return -1; }
+       virtual RESULT seekTitle(int chapter) { return -1; }
 };
 SWIG_TEMPLATE_TYPEDEF(ePtr<iSeekableService>, iSeekableServicePtr);
 
 };
 SWIG_TEMPLATE_TYPEDEF(ePtr<iSeekableService>, iSeekableServicePtr);
 
index fb67787..cd4d339 100644 (file)
@@ -1446,12 +1446,6 @@ RESULT eDVBServicePlay::isCurrentlySeekable()
        return m_is_pvr || m_timeshift_active;
 }
 
        return m_is_pvr || m_timeshift_active;
 }
 
-RESULT eDVBServicePlay::seekChapter(int chapter)
-{
-               /* seekChapter N/I. */
-       return -1;
-}
-
 RESULT eDVBServicePlay::frontendInfo(ePtr<iFrontendInformation> &ptr)
 {
        ptr = this;
 RESULT eDVBServicePlay::frontendInfo(ePtr<iFrontendInformation> &ptr)
 {
        ptr = this;
index d7d05c7..0c5710d 100644 (file)
@@ -128,7 +128,6 @@ public:
        RESULT getPlayPosition(pts_t &pos);
        RESULT setTrickmode(int trick=0);
        RESULT isCurrentlySeekable();
        RESULT getPlayPosition(pts_t &pos);
        RESULT setTrickmode(int trick=0);
        RESULT isCurrentlySeekable();
-       RESULT seekChapter(int chapter);
 
                // iServiceInformation
        RESULT getName(std::string &name);
 
                // iServiceInformation
        RESULT getName(std::string &name);
index 4de7707..f74cc8d 100644 (file)
@@ -491,12 +491,6 @@ RESULT eServiceMP3::setTrickmode(int trick)
        return -1;
 }
 
        return -1;
 }
 
-RESULT eServiceMP3::seekChapter(int chapter)
-{
-               /* seekChapter N/I. */
-       return -1;
-}
-
 RESULT eServiceMP3::isCurrentlySeekable()
 {
        return 1;
 RESULT eServiceMP3::isCurrentlySeekable()
 {
        return 1;
index be07cfc..71291af 100644 (file)
@@ -83,7 +83,7 @@ public:
        RESULT getPlayPosition(pts_t &SWIG_OUTPUT);
        RESULT setTrickmode(int trick);
        RESULT isCurrentlySeekable();
        RESULT getPlayPosition(pts_t &SWIG_OUTPUT);
        RESULT setTrickmode(int trick);
        RESULT isCurrentlySeekable();
-       RESULT seekChapter(int chapter);
+
                // iServiceInformation
        RESULT getName(std::string &name);
        int getInfo(int w);
                // iServiceInformation
        RESULT getName(std::string &name);
        int getInfo(int w);