summaryrefslogtreecommitdiff
path: root/device.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-05-28 09:19:30 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-05-28 09:19:30 +0200
commit39162a98f081d997ad34c1d8dfb48111176eac15 (patch)
tree128173b2da66b9f9d90dcb06ee8c6a7294d1333d /device.h
parent9b3b98f88f3b29c4df704fa321bb882aaa7207c1 (diff)
downloadvdr-39162a98f081d997ad34c1d8dfb48111176eac15.tar.gz
vdr-39162a98f081d997ad34c1d8dfb48111176eac15.tar.bz2
Fixed moving channels, which sometimes stopped the current replay session
Diffstat (limited to 'device.h')
-rw-r--r--device.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/device.h b/device.h
index b9d1220c..7ff5d52e 100644
--- a/device.h
+++ b/device.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.h 1.76 2006/05/26 12:46:59 kls Exp $
+ * $Id: device.h 1.77 2006/05/28 09:19:30 kls Exp $
*/
#ifndef __DEVICE_H
@@ -239,6 +239,13 @@ protected:
public:
static int CurrentChannel(void) { return primaryDevice ? currentChannel : 0; }
///< Returns the number of the current channel on the primary device.
+#if APIVERSNUM != 10400
+#warning ******* API version changed - activate new code
+ static void SetCurrentChannel(const cChannel *Channel) { currentChannel = Channel ? Channel->Number() : 0; }
+ ///< Sets the number of the current channel on the primary device, without
+ ///< actually switching to it. This can be used to correct the current
+ ///< channel number while replaying.
+#endif
void ForceTransferMode(void);
///< Forces the device into transfermode for the current channel.
virtual bool HasLock(int TimeoutMs = 0);//XXX PLUGINS.html