mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Now also checking the CAM slot's priority when activating a CAM
This commit is contained in:
parent
b9f0e39b1b
commit
63372cd4aa
4
menu.c
4
menu.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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"
|
#include "menu.h"
|
||||||
@ -3518,6 +3518,7 @@ eOSState cMenuSetupCAM::Activate(void)
|
|||||||
if (CamSlot->IsActivating())
|
if (CamSlot->IsActivating())
|
||||||
CamSlot->CancelActivation();
|
CamSlot->CancelActivation();
|
||||||
else if (CamSlot->CanActivate()) {
|
else if (CamSlot->CanActivate()) {
|
||||||
|
if (CamSlot->Priority() < LIVEPRIORITY) { // don't interrupt recordings
|
||||||
if (cChannel *Channel = Channels.GetByNumber(cDevice::CurrentChannel())) {
|
if (cChannel *Channel = Channels.GetByNumber(cDevice::CurrentChannel())) {
|
||||||
for (int i = 0; i < cDevice::NumDevices(); i++) {
|
for (int i = 0; i < cDevice::NumDevices(); i++) {
|
||||||
if (cDevice *Device = cDevice::GetDevice(i)) {
|
if (cDevice *Device = cDevice::GetDevice(i)) {
|
||||||
@ -3539,6 +3540,7 @@ eOSState cMenuSetupCAM::Activate(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Skins.Message(mtError, tr("Can't activate CAM!"));
|
Skins.Message(mtError, tr("Can't activate CAM!"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user