diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2010-01-22 15:07:57 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2010-01-22 15:07:57 +0100 |
| commit | 59dece7572bea6bb8aa0391c32774363c62fd71e (patch) | |
| tree | d779e8732e3f27903956338a61e8f90ccfc5e171 /lib | |
| parent | 6551b5fbbed0acb407e3eba5c9c510ca74e352f7 (diff) | |
| parent | 39bcbbae7cd1d2db59ddbf6cbae665313a322f3a (diff) | |
| download | enigma2-59dece7572bea6bb8aa0391c32774363c62fd71e.tar.gz enigma2-59dece7572bea6bb8aa0391c32774363c62fd71e.zip | |
Merge branch 'bug_411_timeshift_disable_without_live' into experimental
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/service/iservice.h | 2 | ||||
| -rw-r--r-- | lib/service/servicedvb.cpp | 5 | ||||
| -rw-r--r-- | lib/service/servicedvb.h | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/lib/service/iservice.h b/lib/service/iservice.h index c477f11d..8b64f166 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 switchToLive=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 615329c9..25e723ed 100644 --- a/lib/service/servicedvb.cpp +++ b/lib/service/servicedvb.cpp @@ -2089,12 +2089,13 @@ RESULT eDVBServicePlay::startTimeshift() return 0; } -RESULT eDVBServicePlay::stopTimeshift() +RESULT eDVBServicePlay::stopTimeshift(bool switchToLive=true) { if (!m_timeshift_enabled) return -1; - switchToLive(); + if (switchToLive) + switchToLive(); m_timeshift_enabled = 0; diff --git a/lib/service/servicedvb.h b/lib/service/servicedvb.h index 42647b92..6ab3b347 100644 --- a/lib/service/servicedvb.h +++ b/lib/service/servicedvb.h @@ -159,7 +159,7 @@ public: // iTimeshiftService RESULT startTimeshift(); - RESULT stopTimeshift(); + RESULT stopTimeshift(bool switchToLive=true); int isTimeshiftActive(); RESULT activateTimeshift(); |
