LinuxTV Patchwork VDR 2.0.0: Fix initialization of cDevice::keepTracks.

login
register
mail settings
Submitter Klaus Schmidinger
Date April 5, 2013, 10:13 a.m.
Message ID <515EA3D5.20202@tvdr.de>
Download mbox | patch
Permalink /patch/17768/
State New
Headers show

Comments

Klaus Schmidinger - April 5, 2013, 10:13 a.m.
As reported here

   http://www.vdr-portal.de/board17-developer/board97-vdr-core/p1137010-zu-sp%C3%A4tes-initialisieren-der-variable-keeptracks-in-device-c

the member variable keepTracks is initialized too late in the cDevice c'tor.
The attached patch fixes this.

Klaus

Patch

--- device.c	2013/03/07 13:18:35	3.0
+++ device.c	2013/04/05 10:05:33
@@ -94,11 +94,11 @@ 
 
   player = NULL;
   isPlayingVideo = false;
+  keepTracks = false; // used in ClrAvailableTracks()!
   ClrAvailableTracks();
   currentAudioTrack = ttNone;
   currentAudioTrackMissingCount = 0;
   currentSubtitleTrack = ttNone;
-  keepTracks = false;
   liveSubtitle = NULL;
   dvbSubtitleConverter = NULL;
   autoSelectPreferredSubtitleLanguage = true;

Privacy Policy