From f97fa9bd92923baa4ae2aa1f6b28c23c907a3473 Mon Sep 17 00:00:00 2001 From: Andreas Frisch Date: Mon, 18 Aug 2008 10:22:45 +0000 Subject: [PATCH] speed up resume (allows skipping into titles) *remember to update libdreamdvd0 - thx to seddi* --- lib/python/Plugins/Extensions/DVDPlayer/plugin.py | 7 +++++-- 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() -- 2.30.2