add seekChapter method to iSeekableService interface
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 15 Apr 2008 12:38:43 +0000 (12:38 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 15 Apr 2008 12:38:43 +0000 (12:38 +0000)
lib/service/iservice.h
lib/service/servicedvb.cpp
lib/service/servicedvb.h
lib/service/servicemp3.cpp
lib/service/servicemp3.h

index 896996b..054e222 100644 (file)
@@ -420,6 +420,7 @@ 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;      
 };
 SWIG_TEMPLATE_TYPEDEF(ePtr<iSeekableService>, iSeekableServicePtr);
 
 };
 SWIG_TEMPLATE_TYPEDEF(ePtr<iSeekableService>, iSeekableServicePtr);
 
index cd4d339..fb67787 100644 (file)
@@ -1446,6 +1446,12 @@ 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 0c5710d..d7d05c7 100644 (file)
@@ -128,6 +128,7 @@ 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 f74cc8d..4de7707 100644 (file)
@@ -491,6 +491,12 @@ 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 2089289..be07cfc 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);