Now also checking the CAM slot's priority when activating a CAM

This commit is contained in:
Klaus Schmidinger 2015-01-31 14:50:55 +01:00
parent b9f0e39b1b
commit 63372cd4aa
1 changed files with 16 additions and 14 deletions

4
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: menu.c 3.33 2015/01/31 11:36:08 kls Exp $
* $Id: menu.c 3.34 2015/01/31 14:50:55 kls Exp $
*/
#include "menu.h"
@ -3518,6 +3518,7 @@ eOSState cMenuSetupCAM::Activate(void)
if (CamSlot->IsActivating())
CamSlot->CancelActivation();
else if (CamSlot->CanActivate()) {
if (CamSlot->Priority() < LIVEPRIORITY) { // don't interrupt recordings
if (cChannel *Channel = Channels.GetByNumber(cDevice::CurrentChannel())) {
for (int i = 0; i < cDevice::NumDevices(); i++) {
if (cDevice *Device = cDevice::GetDevice(i)) {
@ -3539,6 +3540,7 @@ eOSState cMenuSetupCAM::Activate(void)
}
}
}
}
Skins.Message(mtError, tr("Can't activate CAM!"));
}
}