From 39bcbbae7cd1d2db59ddbf6cbae665313a322f3a Mon Sep 17 00:00:00 2001 From: ghost Date: Fri, 22 Jan 2010 15:06:12 +0100 Subject: add possibility to stopTimeshift but not switch back to live (not used in e2.. but usable for external plugins) this fixes bug #411 --- lib/service/servicedvb.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/service/servicedvb.cpp') 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; -- cgit v1.2.3