diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-09-06 14:10:17 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-09-06 14:10:17 +0200 |
commit | f24f820e7deb5a9cadfb56f72ad39cb313c87092 (patch) | |
tree | 6cea197c80c15d78b99faec1de60cf9014e458ad /menu.c | |
parent | 3e58bc64fece489778cdd2dc3df24c9bdca28779 (diff) | |
download | vdr-f24f820e7deb5a9cadfb56f72ad39cb313c87092.tar.gz vdr-f24f820e7deb5a9cadfb56f72ad39cb313c87092.tar.bz2 |
Changed NeedsSwitchChannel to NeedsDetachReceivers
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -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]) { |