diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-04-15 12:38:43 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-04-15 12:38:43 +0000 |
| commit | c50acf3391bec3f2abaf219c8f52c7d57d6149b5 (patch) | |
| tree | 723cd560a7f148c63d6ebd75e6c9c71f261c5427 /lib | |
| parent | 67f7a83d412b49b3599ef6c4100740e3fa6acc41 (diff) | |
| download | enigma2-c50acf3391bec3f2abaf219c8f52c7d57d6149b5.tar.gz enigma2-c50acf3391bec3f2abaf219c8f52c7d57d6149b5.zip | |
add seekChapter method to iSeekableService interface
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/service/iservice.h | 1 | ||||
| -rw-r--r-- | lib/service/servicedvb.cpp | 6 | ||||
| -rw-r--r-- | lib/service/servicedvb.h | 1 | ||||
| -rw-r--r-- | lib/service/servicemp3.cpp | 6 | ||||
| -rw-r--r-- | lib/service/servicemp3.h | 2 |
5 files changed, 15 insertions, 1 deletions
diff --git a/lib/service/iservice.h b/lib/service/iservice.h index 896996b9..054e2224 100644 --- a/lib/service/iservice.h +++ b/lib/service/iservice.h @@ -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; + virtual RESULT seekChapter(int chapter)=0; }; SWIG_TEMPLATE_TYPEDEF(ePtr<iSeekableService>, iSeekableServicePtr); diff --git a/lib/service/servicedvb.cpp b/lib/service/servicedvb.cpp index cd4d3394..fb67787a 100644 --- a/lib/service/servicedvb.cpp +++ b/lib/service/servicedvb.cpp @@ -1446,6 +1446,12 @@ RESULT eDVBServicePlay::isCurrentlySeekable() 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; diff --git a/lib/service/servicedvb.h b/lib/service/servicedvb.h index 0c5710d8..d7d05c78 100644 --- a/lib/service/servicedvb.h +++ b/lib/service/servicedvb.h @@ -128,6 +128,7 @@ public: RESULT getPlayPosition(pts_t &pos); RESULT setTrickmode(int trick=0); RESULT isCurrentlySeekable(); + RESULT seekChapter(int chapter); // iServiceInformation RESULT getName(std::string &name); diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp index f74cc8d0..4de77070 100644 --- a/lib/service/servicemp3.cpp +++ b/lib/service/servicemp3.cpp @@ -491,6 +491,12 @@ RESULT eServiceMP3::setTrickmode(int trick) return -1; } +RESULT eServiceMP3::seekChapter(int chapter) +{ + /* seekChapter N/I. */ + return -1; +} + RESULT eServiceMP3::isCurrentlySeekable() { return 1; diff --git a/lib/service/servicemp3.h b/lib/service/servicemp3.h index 20892898..be07cfc7 100644 --- a/lib/service/servicemp3.h +++ b/lib/service/servicemp3.h @@ -83,7 +83,7 @@ public: 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); |
