mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Added a few missing initializations
This commit is contained in:
parent
ea04f80d95
commit
d5533f2014
@ -672,6 +672,7 @@ Marcel Wiesweg <marcel.wiesweg@gmx.de>
|
|||||||
use them
|
use them
|
||||||
for his help in fixing some issues with gcc 3.4
|
for his help in fixing some issues with gcc 3.4
|
||||||
for fixing a memory leak in NIT processing
|
for fixing a memory leak in NIT processing
|
||||||
|
for adding a few missing initializations
|
||||||
|
|
||||||
Torsten Herz <torsten.herz@web.de>
|
Torsten Herz <torsten.herz@web.de>
|
||||||
for fixing a possible deadlock when using the "Blue" button in the "Schedules" menu
|
for fixing a possible deadlock when using the "Blue" button in the "Schedules" menu
|
||||||
|
1
HISTORY
1
HISTORY
@ -2826,3 +2826,4 @@ Video Disk Recorder Revision History
|
|||||||
- Fixed freezing picture when a recording starts on a system that always uses
|
- Fixed freezing picture when a recording starts on a system that always uses
|
||||||
'Transfer Mode' (thanks to Michal Dobrzynski for reporting this one).
|
'Transfer Mode' (thanks to Michal Dobrzynski for reporting this one).
|
||||||
- Fixed a memory leak in NIT processing (thanks to Marcel Wiesweg).
|
- Fixed a memory leak in NIT processing (thanks to Marcel Wiesweg).
|
||||||
|
- Added a few missing initializations (thanks to Marcel Wiesweg).
|
||||||
|
8
pat.c
8
pat.c
@ -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: pat.c 1.8 2004/03/07 16:59:00 kls Exp $
|
* $Id: pat.c 1.9 2004/05/23 09:29:04 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "pat.h"
|
#include "pat.h"
|
||||||
@ -211,6 +211,7 @@ int cCaDescriptorHandler::AddCaDescriptors(cCaDescriptors *CaDescriptors)
|
|||||||
int cCaDescriptorHandler::GetCaDescriptors(int Source, int Transponder, int ServiceId, const unsigned short *CaSystemIds, int BufSize, uchar *Data, bool &StreamFlag)
|
int cCaDescriptorHandler::GetCaDescriptors(int Source, int Transponder, int ServiceId, const unsigned short *CaSystemIds, int BufSize, uchar *Data, bool &StreamFlag)
|
||||||
{
|
{
|
||||||
cMutexLock MutexLock(&mutex);
|
cMutexLock MutexLock(&mutex);
|
||||||
|
StreamFlag = false;
|
||||||
for (cCaDescriptors *ca = First(); ca; ca = Next(ca)) {
|
for (cCaDescriptors *ca = First(); ca; ca = Next(ca)) {
|
||||||
if (ca->Is(Source, Transponder, ServiceId))
|
if (ca->Is(Source, Transponder, ServiceId))
|
||||||
return ca->GetCaDescriptors(CaSystemIds, BufSize, Data, StreamFlag);
|
return ca->GetCaDescriptors(CaSystemIds, BufSize, Data, StreamFlag);
|
||||||
@ -326,8 +327,8 @@ void cPatFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
|
|||||||
int Ppid = pmt.getPCRPid();
|
int Ppid = pmt.getPCRPid();
|
||||||
int Apids[MAXAPIDS] = { 0 };
|
int Apids[MAXAPIDS] = { 0 };
|
||||||
int Dpids[MAXAPIDS] = { 0 };
|
int Dpids[MAXAPIDS] = { 0 };
|
||||||
char ALangs[MAXAPIDS][4];
|
char ALangs[MAXAPIDS][4] = { "" };
|
||||||
char DLangs[MAXAPIDS][4];
|
char DLangs[MAXAPIDS][4] = { "" };
|
||||||
int Tpid = 0;
|
int Tpid = 0;
|
||||||
int NumApids = 0;
|
int NumApids = 0;
|
||||||
int NumDpids = 0;
|
int NumDpids = 0;
|
||||||
@ -343,7 +344,6 @@ void cPatFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
|
|||||||
{
|
{
|
||||||
if (NumApids < MAXAPIDS) {
|
if (NumApids < MAXAPIDS) {
|
||||||
Apids[NumApids] = stream.getPid();
|
Apids[NumApids] = stream.getPid();
|
||||||
*ALangs[NumApids] = 0;
|
|
||||||
SI::Descriptor *d;
|
SI::Descriptor *d;
|
||||||
for (SI::Loop::Iterator it; (d = stream.streamDescriptors.getNext(it)); ) {
|
for (SI::Loop::Iterator it; (d = stream.streamDescriptors.getNext(it)); ) {
|
||||||
switch (d->getDescriptorTag()) {
|
switch (d->getDescriptorTag()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user