diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-01-08 10:15:30 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-01-08 10:15:30 +0100 |
commit | ec27c329cfeacf4687197f637d6abddd6fed25a8 (patch) | |
tree | 2ace8b248f6da329a1f7621d42c1444c61cb74a2 /device.c | |
parent | 64623e762b0d0ed28f6079ba814511274f5fb428 (diff) | |
download | vdr-ec27c329cfeacf4687197f637d6abddd6fed25a8.tar.gz vdr-ec27c329cfeacf4687197f637d6abddd6fed25a8.tar.bz2 |
Displaying audio track description in channel display
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 11 |
1 files changed, 8 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 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) |