diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-01-17 15:37:52 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-01-17 15:37:52 +0100 |
commit | f8d0f773070e8ac498ff408d35cf9e5daa8f3aa3 (patch) | |
tree | 026905d85689d004b1da2225ecb841de649f0e8d /device.c | |
parent | 9cd835b35e7dda160740efc9a03a2d05326a459a (diff) | |
download | vdr-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.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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) { |