diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-06-16 13:11:33 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-06-16 13:11:33 +0200 |
commit | 0af14457e0cb9f91dd2861814b8a2aae55a193be (patch) | |
tree | 5a2fb5862439c0cbb0fa51797e17e5827bdc41ce | |
parent | ef0aba26bd3c9ca59fb4c0c451db78031a2d180d (diff) | |
download | vdr-0af14457e0cb9f91dd2861814b8a2aae55a193be.tar.gz vdr-0af14457e0cb9f91dd2861814b8a2aae55a193be.tar.bz2 |
Setting all PIDs to 0x1FFF before switching channel
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | dvbapi.c | 10 |
2 files changed, 7 insertions, 4 deletions
@@ -530,3 +530,4 @@ Video Disk Recorder Revision History consist of more than one data file). - The compile time switch VFAT has been fixed to recognize the ':' character in recording names, too. +- Setting all PIDs to 0x1FFF before switching channel. @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbapi.c 1.75 2001/06/16 09:43:03 kls Exp $ + * $Id: dvbapi.c 1.76 2001/06/16 11:36:40 kls Exp $ */ #include "dvbapi.h" @@ -2029,16 +2029,18 @@ void cDvbApi::SetModeNormal(bool FromRecording) bool cDvbApi::SetPid(int fd, dmxPesType_t PesType, dvb_pid_t Pid, dmxOutput_t Output) { - dmxPesFilterParams pesFilterParams; - if (Pid == 0 || Pid == 0xFFFF) + if (Pid == 0) { CHECK(ioctl(fd, DMX_STOP)); + 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) { - if (Pid != 0) + if (Pid != 0x1FFF) LOG_ERROR; return false; } |