diff options
| author | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-08-18 10:22:45 +0000 |
|---|---|---|
| committer | Andreas Frisch <andreas.frisch@multimedia-labs.de> | 2008-08-18 10:22:45 +0000 |
| commit | f97fa9bd92923baa4ae2aa1f6b28c23c907a3473 (patch) | |
| tree | 5147effe25954cfbccd163140c3ab025e118921b /lib/python | |
| parent | 1c12be1f77fee011b3b414d86730c1c73e3650b4 (diff) | |
| download | enigma2-f97fa9bd92923baa4ae2aa1f6b28c23c907a3473.tar.gz enigma2-f97fa9bd92923baa4ae2aa1f6b28c23c907a3473.zip | |
speed up resume (allows skipping into titles) *remember to update libdreamdvd0 - thx to seddi*
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Plugins/Extensions/DVDPlayer/plugin.py | 7 | ||||
| -rw-r--r-- | lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/python/Plugins/Extensions/DVDPlayer/plugin.py b/lib/python/Plugins/Extensions/DVDPlayer/plugin.py index 79a13e6a..03f1ccc9 100644 --- a/lib/python/Plugins/Extensions/DVDPlayer/plugin.py +++ b/lib/python/Plugins/Extensions/DVDPlayer/plugin.py @@ -587,9 +587,12 @@ class DVDPlayer(Screen, InfoBarBase, InfoBarNotifications, InfoBarSeek, InfoBarP def playLastCB(self, answer): # overwrite infobar cuesheet function print "playLastCB", answer, self.resume_point - if self.service and answer == True: + if self.service: seek = self.service.seek() - seek.seekTo(self.resume_point) + if answer == True: + seek.seekTo(self.resume_point) + pause = self.service.pause() + pause.unpause() self.hideAfterResume() def showAfterCuesheetOperation(self): diff --git a/lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp b/lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp index cdb01d3c..7a731194 100644 --- a/lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp +++ b/lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp @@ -115,6 +115,7 @@ eServiceDVD::eServiceDVD(const char *filename): CONNECT(m_pump.recv_msg, eServiceDVD::gotThreadMessage); strcpy(m_ddvd_titlestring,""); m_cue_pts = 0; + pause(); } void eServiceDVD::gotThreadMessage(const int &msg) @@ -733,6 +734,8 @@ void eServiceDVD::loadCuesheet() m_event((iPlayableService*)this, evCuesheetChanged); eDebug("eServiceDVD::loadCuesheet() pts=%lld",m_cue_pts); } + else + unpause(); } void eServiceDVD::saveCuesheet() |
