diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-08-11 13:32:23 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-08-11 13:32:23 +0200 |
commit | 9a1a16f3d42b2f48b26eb3daef3a195fc0f2a13e (patch) | |
tree | 7d7d8667832651e37cd8de53296d0bcd32dba085 /dvbdevice.c | |
parent | b9c4cb0ec9c417c483be2a40cd66f839b063015f (diff) | |
download | vdr-9a1a16f3d42b2f48b26eb3daef3a195fc0f2a13e.tar.gz vdr-9a1a16f3d42b2f48b26eb3daef3a195fc0f2a13e.tar.bz2 |
Consistently using malloc/free and new/delete
Diffstat (limited to 'dvbdevice.c')
-rw-r--r-- | dvbdevice.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dvbdevice.c b/dvbdevice.c index f0ca0540..3c54d70d 100644 --- a/dvbdevice.c +++ b/dvbdevice.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbdevice.c 1.2 2002/08/10 14:57:33 kls Exp $ + * $Id: dvbdevice.c 1.3 2002/08/11 12:03:33 kls Exp $ */ #include "dvbdevice.h" @@ -316,6 +316,7 @@ bool cDvbDevice::SetPid(cPidHandle *Handle, int Type, bool On) if (Handle->pid != 0x1FFF) { dmxPesFilterParams pesFilterParams; + memset(&pesFilterParams, 0, sizeof(pesFilterParams)); pesFilterParams.pid = Handle->pid; pesFilterParams.input = DMX_IN_FRONTEND; pesFilterParams.output = (Type <= ptTeletext && Handle->used <= 1) ? DMX_OUT_DECODER : DMX_OUT_TS_TAP; @@ -364,6 +365,8 @@ bool cDvbDevice::SetChannelDevice(const cChannel *Channel) FrontendParameters Frontend; #endif + memset(&Frontend, 0, sizeof(Frontend)); + switch (frontendType) { case FE_QPSK: { // DVB-S |