summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-01-17 15:37:52 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-01-17 15:37:52 +0100
commitf8d0f773070e8ac498ff408d35cf9e5daa8f3aa3 (patch)
tree026905d85689d004b1da2225ecb841de649f0e8d /device.c
parent9cd835b35e7dda160740efc9a03a2d05326a459a (diff)
downloadvdr-f8d0f773070e8ac498ff408d35cf9e5daa8f3aa3.tar.gz
vdr-f8d0f773070e8ac498ff408d35cf9e5daa8f3aa3.tar.bz2
Fixed asserting there is a live programme if the primary device is bonded with a device that starts a recording on a different band
Diffstat (limited to 'device.c')
-rw-r--r--device.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/device.c b/device.c
index 0bab66cd..be59ed5f 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 2.44 2011/10/16 14:36:43 kls Exp $
+ * $Id: device.c 2.45 2012/01/17 15:28:57 kls Exp $
*/
#include "device.h"
@@ -531,6 +531,14 @@ bool cDevice::SetPid(cPidHandle *Handle, int Type, bool On)
return false;
}
+void cDevice::DelLivePids(void)
+{
+ for (int i = ptAudio; i < ptOther; i++) {
+ if (pidHandles[i].pid)
+ DelPid(pidHandles[i].pid, ePidType(i));
+ }
+}
+
void cDevice::StartSectionHandler(void)
{
if (!sectionHandler) {