summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-09-06 14:10:17 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-09-06 14:10:17 +0200
commitf24f820e7deb5a9cadfb56f72ad39cb313c87092 (patch)
tree6cea197c80c15d78b99faec1de60cf9014e458ad /menu.c
parent3e58bc64fece489778cdd2dc3df24c9bdca28779 (diff)
downloadvdr-f24f820e7deb5a9cadfb56f72ad39cb313c87092.tar.gz
vdr-f24f820e7deb5a9cadfb56f72ad39cb313c87092.tar.bz2
Changed NeedsSwitchChannel to NeedsDetachReceivers
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/menu.c b/menu.c
index 803b3735..7d13055d 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.207 2002/09/04 13:27:13 kls Exp $
+ * $Id: menu.c 1.208 2002/09/06 14:07:58 kls Exp $
*/
#include "menu.h"
@@ -2519,15 +2519,14 @@ bool cRecordControls::Start(cTimer *Timer)
cChannel *channel = Channels.GetByNumber(ch);
if (channel) {
- bool NeedsSwitchChannel = false;
- cDevice *device = cDevice::GetDevice(channel, Timer ? Timer->priority : Setup.DefaultPriority, &NeedsSwitchChannel);
+ bool NeedsDetachReceivers = false;
+ cDevice *device = cDevice::GetDevice(channel, Timer ? Timer->priority : Setup.DefaultPriority, &NeedsDetachReceivers);
if (device) {
- if (NeedsSwitchChannel) {
+ if (NeedsDetachReceivers)
Stop(device);
- if (!device->SwitchChannel(channel, false)) {
- cThread::EmergencyExit(true);
- return false;
- }
+ if (!device->SwitchChannel(channel, false)) {
+ cThread::EmergencyExit(true);
+ return false;
}
for (int i = 0; i < MAXRECORDCONTROLS; i++) {
if (!RecordControls[i]) {