summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2014-01-20 12:14:30 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2014-01-20 12:14:30 +0100
commit6e2f0f695f0c537ddeb0c61b51e298caf29bcbb3 (patch)
tree0f3f2da4fe0d11e0cd997ae3d37916c80e13865a /device.c
parent6f9929b1c0c3a5faa5377eebbc761894b4d98613 (diff)
downloadvdr-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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/device.c b/device.c
index 75bb9181..5b9e1ec6 100644
--- a/device.c
+++ b/device.c
@@ -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;