summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-01-08 10:15:30 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-01-08 10:15:30 +0100
commitec27c329cfeacf4687197f637d6abddd6fed25a8 (patch)
tree2ace8b248f6da329a1f7621d42c1444c61cb74a2 /device.c
parent64623e762b0d0ed28f6079ba814511274f5fb428 (diff)
downloadvdr-ec27c329cfeacf4687197f637d6abddd6fed25a8.tar.gz
vdr-ec27c329cfeacf4687197f637d6abddd6fed25a8.tar.bz2
Displaying audio track description in channel display
Diffstat (limited to 'device.c')
-rw-r--r--device.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/device.c b/device.c
index 390cf92f..a0162fe8 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.70 2005/01/06 16:45:12 kls Exp $
+ * $Id: device.c 1.71 2005/01/08 10:15:00 kls Exp $
*/
#include "device.h"
@@ -644,9 +644,14 @@ void cDevice::SetVolume(int Volume, bool Absolute)
}
}
-void cDevice::ClrAvailableTracks(void)
+void cDevice::ClrAvailableTracks(bool DescriptionsOnly)
{
- memset(availableTracks, 0, sizeof(availableTracks));
+ if (DescriptionsOnly) {
+ for (int i = ttNone; i < ttMaxTrackTypes; i++)
+ *availableTracks[i].description = 0;
+ }
+ else
+ memset(availableTracks, 0, sizeof(availableTracks));
}
bool cDevice::SetAvailableTrack(eTrackType Type, int Index, uint16_t Id, const char *Language, const char *Description, uint32_t Flags)