diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-04-21 12:11:00 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-04-21 12:11:00 +0200 |
commit | fb38680302ca6b5b737ea295709495abfafe7325 (patch) | |
tree | 4fbf9ce0237a6c6a1667754d0558d1652f98d452 /dvbapi.c | |
parent | d628839eeee4f0976b15efc3d985b1cac99fbad8 (diff) | |
download | vdr-fb38680302ca6b5b737ea295709495abfafe7325.tar.gz vdr-fb38680302ca6b5b737ea295709495abfafe7325.tar.bz2 |
No longer setting PIDs 0x1FFF, which apparently fixes problems with CAMs and AC3 sound only working the first time
Diffstat (limited to 'dvbapi.c')
-rw-r--r-- | dvbapi.c | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbapi.c 1.172 2002/04/21 09:54:40 kls Exp $ + * $Id: dvbapi.c 1.173 2002/04/21 11:55:48 kls Exp $ */ #include "dvbapi.h" @@ -2306,16 +2306,17 @@ bool cDvbApi::SetPid(int fd, dmxPesType_t PesType, int Pid, dmxOutput_t Output) { if (Pid) { CHECK(ioctl(fd, DMX_STOP)); - dmxPesFilterParams pesFilterParams; - pesFilterParams.pid = Pid; - pesFilterParams.input = DMX_IN_FRONTEND; - pesFilterParams.output = Output; - pesFilterParams.pesType = PesType; - pesFilterParams.flags = DMX_IMMEDIATE_START; - if (ioctl(fd, DMX_SET_PES_FILTER, &pesFilterParams) < 0) { - if (Pid != 0x1FFF) + if (Pid != 0x1FFF) { + dmxPesFilterParams pesFilterParams; + pesFilterParams.pid = Pid; + pesFilterParams.input = DMX_IN_FRONTEND; + pesFilterParams.output = Output; + pesFilterParams.pesType = PesType; + pesFilterParams.flags = DMX_IMMEDIATE_START; + if (ioctl(fd, DMX_SET_PES_FILTER, &pesFilterParams) < 0) { LOG_ERROR; - return false; + return false; + } } } return true; |