aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2010-02-12 14:23:06 +0100
committerghost <andreas.monzner@multimedia-labs.de>2010-02-12 14:23:06 +0100
commita37ddbb7785de5f1d944f4937a5b2914ce6a3862 (patch)
treee3fc570edabdb51535361ce8a31bc117a913762d /lib
parentae12f5e4894a65289aeafd97931e1651939bf8b1 (diff)
parent83a674f998012f616a3ed7e7b7043e498fd93e09 (diff)
downloadenigma2-a37ddbb7785de5f1d944f4937a5b2914ce6a3862.tar.gz
enigma2-a37ddbb7785de5f1d944f4937a5b2914ce6a3862.zip
Merge branch 'bug_411_timeshift_disable_without_live'
Diffstat (limited to 'lib')
-rw-r--r--lib/service/iservice.h2
-rw-r--r--lib/service/servicedvb.cpp5
-rw-r--r--lib/service/servicedvb.h2
3 files changed, 5 insertions, 4 deletions
diff --git a/lib/service/iservice.h b/lib/service/iservice.h
index c477f11d..c35313f0 100644
--- a/lib/service/iservice.h
+++ b/lib/service/iservice.h
@@ -593,7 +593,7 @@ class iTimeshiftService: public iObject
#endif
public:
virtual RESULT startTimeshift()=0;
- virtual RESULT stopTimeshift()=0;
+ virtual RESULT stopTimeshift(bool swToLive=true)=0;
virtual int isTimeshiftActive()=0;
/* this essentially seeks to the relative end of the timeshift buffer */
diff --git a/lib/service/servicedvb.cpp b/lib/service/servicedvb.cpp
index 1a3cb0e0..558bf0c2 100644
--- a/lib/service/servicedvb.cpp
+++ b/lib/service/servicedvb.cpp
@@ -2085,12 +2085,13 @@ RESULT eDVBServicePlay::startTimeshift()
return 0;
}
-RESULT eDVBServicePlay::stopTimeshift()
+RESULT eDVBServicePlay::stopTimeshift(bool swToLive)
{
if (!m_timeshift_enabled)
return -1;
- switchToLive();
+ if (swToLive)
+ switchToLive();
m_timeshift_enabled = 0;
diff --git a/lib/service/servicedvb.h b/lib/service/servicedvb.h
index 42647b92..1262836e 100644
--- a/lib/service/servicedvb.h
+++ b/lib/service/servicedvb.h
@@ -159,7 +159,7 @@ public:
// iTimeshiftService
RESULT startTimeshift();
- RESULT stopTimeshift();
+ RESULT stopTimeshift(bool swToLive=true);
int isTimeshiftActive();
RESULT activateTimeshift();