diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2014-01-20 12:14:30 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2014-01-20 12:14:30 +0100 |
commit | 6e2f0f695f0c537ddeb0c61b51e298caf29bcbb3 (patch) | |
tree | 0f3f2da4fe0d11e0cd997ae3d37916c80e13865a /device.c | |
parent | 6f9929b1c0c3a5faa5377eebbc761894b4d98613 (diff) | |
download | vdr-6e2f0f695f0c537ddeb0c61b51e298caf29bcbb3.tar.gz vdr-6e2f0f695f0c537ddeb0c61b51e298caf29bcbb3.tar.bz2 |
Now making sure the primary device goes into transfer mode for live viewing if the CAM wants to receive the TS data
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.c 3.9 2014/01/18 14:26:06 kls Exp $ + * $Id: device.c 3.10 2014/01/20 11:53:47 kls Exp $ */ #include "device.h" @@ -761,6 +761,9 @@ eSetChannelResult cDevice::SetChannel(const cChannel *Channel, bool LiveView) cDevice *Device = (LiveView && IsPrimaryDevice()) ? GetDevice(Channel, LIVEPRIORITY, true) : this; bool NeedsTransferMode = Device != this; + // If the CAM slot wants the TS data, we need to switch to Transfer Mode: + if (!NeedsTransferMode && LiveView && IsPrimaryDevice() && CamSlot() && CamSlot()->WantsTsData()) + NeedsTransferMode = true; eSetChannelResult Result = scrOk; |