summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-01-04 13:19:22 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-01-04 13:19:22 +0100
commitb62328b8ae6b40ee499f1b110eb78b7a8458dddc (patch)
treef5a816f4377bcbf45e4aa4dd907b1131469233d9 /device.c
parent5274b4c8b332c155f7510ca443e2e5768c49cae4 (diff)
downloadvdr-b62328b8ae6b40ee499f1b110eb78b7a8458dddc.tar.gz
vdr-b62328b8ae6b40ee499f1b110eb78b7a8458dddc.tar.bz2
Moved setting available tracks to cDevice
Diffstat (limited to 'device.c')
-rw-r--r--device.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/device.c b/device.c
index 20394a59..3faefab3 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 1.65 2005/01/02 14:08:40 kls Exp $
+ * $Id: device.c 1.66 2005/01/04 13:13:24 kls Exp $
*/
#include "device.h"
@@ -540,8 +540,14 @@ eSetChannelResult cDevice::SetChannel(const cChannel *Channel, bool LiveView)
}
if (Result == scrOk) {
- if (LiveView && IsPrimaryDevice())
+ if (LiveView && IsPrimaryDevice()) {
+ ClrAvailableTracks();
+ for (int i = 0; i < MAXAPIDS; i++) {
+ SetAvailableTrack(ttAudio, i, Channel->Apid(i), Channel->Alang(i));
+ SetAvailableTrack(ttDolby, i, Channel->Dpid(i), Channel->Dlang(i));
+ }
currentChannel = Channel->Number();
+ }
cStatus::MsgChannelSwitch(this, Channel->Number()); // only report status if channel switch successfull
}