summaryrefslogtreecommitdiff
path: root/dvbdevice.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-10-26 11:51:37 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-10-26 11:51:37 +0200
commit41320eca4d534aa803f0aeab1258965aa937752e (patch)
tree29e68ea874557f87d217f42a1c8558d65cb9de76 /dvbdevice.c
parentffb615332619822f891c8c378e4ceeb6d58529bc (diff)
downloadvdr-41320eca4d534aa803f0aeab1258965aa937752e.tar.gz
vdr-41320eca4d534aa803f0aeab1258965aa937752e.tar.bz2
Fixed blocking replaying in case an encrypted channel is being recorded on the primary device
Diffstat (limited to 'dvbdevice.c')
-rw-r--r--dvbdevice.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/dvbdevice.c b/dvbdevice.c
index cbd20e5a..a1a8913d 100644
--- a/dvbdevice.c
+++ b/dvbdevice.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbdevice.c 1.29 2002/10/26 11:11:42 kls Exp $
+ * $Id: dvbdevice.c 1.30 2002/10/26 11:37:03 kls Exp $
*/
#include "dvbdevice.h"
@@ -802,6 +802,11 @@ void cDvbDevice::SetAudioTrackDevice(int Index)
}
}
+bool cDvbDevice::CanReplay(void) const
+{
+ return cDevice::CanReplay() && !Ca(); // we can only replay if there is no Ca recording going on
+}
+
bool cDvbDevice::SetPlayMode(ePlayMode PlayMode)
{
if (PlayMode != pmExtern_THIS_SHOULD_BE_AVOIDED && fd_video < 0 && fd_audio < 0) {