Moved the initialization of aPid1 and aPid2 to the beginning of cDvbDevice::cDvbDevice()

This commit is contained in:
Klaus Schmidinger 2004-10-16 12:57:51 +02:00
parent 414548446b
commit eff00653c5
3 changed files with 7 additions and 3 deletions

View File

@ -1030,6 +1030,8 @@ Michal Dobrzynski <michal_dobrzynski@mac.com>
Wayne Keer <syphir@syphir.sytes.net> Wayne Keer <syphir@syphir.sytes.net>
for reporting a bug in handling descriptor loops in 'libsi', which had sometimes for reporting a bug in handling descriptor loops in 'libsi', which had sometimes
caused invalid CA ids to be added to the channel definitions caused invalid CA ids to be added to the channel definitions
for pointing out a problem with the initialization of aPid1 and aPid2 in
cDvbDevice::cDvbDevice() in case a patch references them
Marco Schlüßler <marco@lordzodiac.de> Marco Schlüßler <marco@lordzodiac.de>
for fixing handling colors in cDvbSpuPalette::yuv2rgb() for fixing handling colors in cDvbSpuPalette::yuv2rgb()

View File

@ -3015,3 +3015,6 @@ Video Disk Recorder Revision History
- Added Estonian language texts (thanks to Arthur Konovalov). - Added Estonian language texts (thanks to Arthur Konovalov).
- Fixed 'newplugin' to use the compiler defined in $(CXX) for generating file - Fixed 'newplugin' to use the compiler defined in $(CXX) for generating file
dependencies (thanks to Andreas Brachold). dependencies (thanks to Andreas Brachold).
- Moved the initialization of aPid1 and aPid2 to the beginning of cDvbDevice::cDvbDevice()
to have them set in case a patch references them (thanks to Wayne Keer for pointing
this out).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: dvbdevice.c 1.94 2004/10/15 13:07:52 kls Exp $ * $Id: dvbdevice.c 1.95 2004/10/16 12:51:56 kls Exp $
*/ */
#include "dvbdevice.h" #include "dvbdevice.h"
@ -307,6 +307,7 @@ cDvbDevice::cDvbDevice(int n)
frontendType = fe_type_t(-1); // don't know how else to initialize this - there is no FE_UNKNOWN frontendType = fe_type_t(-1); // don't know how else to initialize this - there is no FE_UNKNOWN
spuDecoder = NULL; spuDecoder = NULL;
playMode = pmNone; playMode = pmNone;
aPid1 = aPid2 = 0;
// Devices that are present on all card types: // Devices that are present on all card types:
@ -371,8 +372,6 @@ cDvbDevice::cDvbDevice(int n)
else else
esyslog("ERROR: can't open DVB device %d", n); esyslog("ERROR: can't open DVB device %d", n);
aPid1 = aPid2 = 0;
StartSectionHandler(); StartSectionHandler();
} }