diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-03-03 11:51:32 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-03-03 11:51:32 +0100 |
commit | 0432198e0b3fb7f77711a2ccb832cdc6c092df58 (patch) | |
tree | 73dc1bf816ea03462f80b49b2bafbd13b6208733 /device.c | |
parent | c5eb60f07a560d9baed751edbb5b5c0246c8e903 (diff) | |
download | vdr-0432198e0b3fb7f77711a2ccb832cdc6c092df58.tar.gz vdr-0432198e0b3fb7f77711a2ccb832cdc6c092df58.tar.bz2 |
Moved the call to cStatus::MsgChannelSwitch(this, 0) to the beginning of cDevice::SetChannel()1.7.25
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 6 |
1 files changed, 3 insertions, 3 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.54 2012/03/02 10:46:06 kls Exp $ + * $Id: device.c 2.55 2012/03/03 11:43:05 kls Exp $ */ #include "device.h" @@ -708,6 +708,8 @@ bool cDevice::SwitchChannel(int Direction) eSetChannelResult cDevice::SetChannel(const cChannel *Channel, bool LiveView) { + cStatus::MsgChannelSwitch(this, 0); + if (LiveView) { StopReplay(); DELETENULL(liveSubtitle); @@ -725,7 +727,6 @@ eSetChannelResult cDevice::SetChannel(const cChannel *Channel, bool LiveView) if (NeedsTransferMode) { if (Device && CanReplay()) { - cStatus::MsgChannelSwitch(this, 0); // only report status if we are actually going to switch the channel if (Device->SetChannel(Channel, false) == scrOk) // calling SetChannel() directly, not SwitchChannel()! cControl::Launch(new cTransferControl(Device, Channel)); else @@ -736,7 +737,6 @@ eSetChannelResult cDevice::SetChannel(const cChannel *Channel, bool LiveView) } else { Channels.Lock(false); - cStatus::MsgChannelSwitch(this, 0); // only report status if we are actually going to switch the channel // Stop section handling: if (sectionHandler) { sectionHandler->SetStatus(false); |