summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-02-06 11:44:56 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-02-06 11:44:56 +0100
commit506eb479a567ef00b4c2a332007ba3e03cbe21ef (patch)
tree9f16677ae8287546f620d364984a8ed5980e13a6 /device.c
parent1f677366c4c486eddce517d696d672acfd56db37 (diff)
downloadvdr-506eb479a567ef00b4c2a332007ba3e03cbe21ef.tar.gz
vdr-506eb479a567ef00b4c2a332007ba3e03cbe21ef.tar.bz2
Removed 'flags' from tTrackId
Diffstat (limited to 'device.c')
-rw-r--r--device.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/device.c b/device.c
index 88f41d27..8d52a2c1 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.82 2005/02/06 11:32:05 kls Exp $
+ * $Id: device.c 1.83 2005/02/06 11:43:20 kls Exp $
*/
#include "device.h"
@@ -649,7 +649,7 @@ void cDevice::ClrAvailableTracks(bool DescriptionsOnly)
}
}
-bool cDevice::SetAvailableTrack(eTrackType Type, int Index, uint16_t Id, const char *Language, const char *Description, uint32_t Flags)
+bool cDevice::SetAvailableTrack(eTrackType Type, int Index, uint16_t Id, const char *Language, const char *Description)
{
eTrackType t = eTrackType(Type + Index);
if (Type == ttAudio && IS_AUDIO_TRACK(t) ||
@@ -658,10 +658,8 @@ bool cDevice::SetAvailableTrack(eTrackType Type, int Index, uint16_t Id, const c
strn0cpy(availableTracks[t].language, Language, sizeof(availableTracks[t].language));
if (Description)
strn0cpy(availableTracks[t].description, Description, sizeof(availableTracks[t].description));
- if (Id) {
- availableTracks[t].flags = Flags;
+ if (Id)
availableTracks[t].id = Id; // setting 'id' last to avoid the need for extensive locking
- }
if (t == currentAudioTrack)
currentAudioTrackMissingCount = 0;
else if (!availableTracks[currentAudioTrack].id && currentAudioTrackMissingCount++ > NumAudioTracks() * 10)