You are not logged in.

Dear visitor, welcome to VDR Portal. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Joe_D

Professional

  • "Joe_D" started this thread

Posts: 978

Location: Kuchen

  • Send private message

1

Friday, April 5th 2013, 12:06am

Zu spätes Initialisieren der Variable keepTracks in device.c

In cDevice::cDevice wird keepTracks zu spät initialisiert:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
cDevice::cDevice(void)
:patPmtParser(true)
{
  cardIndex = nextCardIndex++;
  dsyslog("new device number %d", CardIndex() + 1);

  SetDescription("receiver on device %d", CardIndex() + 1);
[...]
  player = NULL;
  isPlayingVideo = false;
  ClrAvailableTracks();
  currentAudioTrack = ttNone;
  currentAudioTrackMissingCount = 0;
  currentSubtitleTrack = ttNone;
  keepTracks = false;

Denn in ClrAvailableTracks() wirds schon verwendet:

Source code

1
2
3
4
5
void cDevice::ClrAvailableTracks(bool DescriptionsOnly, bool IdsOnly)
{
  if (keepTracks)
     return;
[...]


Gruß

Joe_D

kls

Master

Posts: 2,677

Location: Mettenheim

  • Send private message

2

Friday, April 5th 2013, 12:10pm

Anbei der Fix.

@Joe_D: Für Erwähnung in HISTORY/CONTRIBUTORS bitte Email mit vollem Namen an vdr@tvdr.de.

Klaus
kls has attached the following file:
Gib CI+/HD+ keine Chance! Lasst diese Pest am ausgestreckten Arm verhungern!
Wer für sowas bezahlt macht sich zum Totengräber von Projekten wie VDR!
Die Wahrheit ueber HD Plus
CI-Plus -- Das trojanische Pferd im Wohnzimmer