mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Changed turning off PIDs when switching channel
This commit is contained in:
parent
d3f255e79e
commit
7429eb81f0
14
dvbapi.c
14
dvbapi.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: dvbapi.c 1.77 2001/06/16 14:23:28 kls Exp $
|
* $Id: dvbapi.c 1.78 2001/06/16 14:38:07 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dvbapi.h"
|
#include "dvbapi.h"
|
||||||
@ -2039,10 +2039,8 @@ void cDvbApi::SetVideoFormat(videoFormat_t Format)
|
|||||||
|
|
||||||
bool cDvbApi::SetPid(int fd, dmxPesType_t PesType, dvb_pid_t Pid, dmxOutput_t Output)
|
bool cDvbApi::SetPid(int fd, dmxPesType_t PesType, dvb_pid_t Pid, dmxOutput_t Output)
|
||||||
{
|
{
|
||||||
if (Pid == 0) {
|
if (Pid == 0x1FFF)
|
||||||
CHECK(ioctl(fd, DMX_STOP));
|
CHECK(ioctl(fd, DMX_STOP));
|
||||||
Pid = 0x1FFF;
|
|
||||||
}
|
|
||||||
dmxPesFilterParams pesFilterParams;
|
dmxPesFilterParams pesFilterParams;
|
||||||
pesFilterParams.pid = Pid;
|
pesFilterParams.pid = Pid;
|
||||||
pesFilterParams.input = DMX_IN_FRONTEND;
|
pesFilterParams.input = DMX_IN_FRONTEND;
|
||||||
@ -2083,10 +2081,10 @@ bool cDvbApi::SetChannel(int ChannelNumber, int FrequencyMHz, char Polarization,
|
|||||||
|
|
||||||
// Turn off current PIDs:
|
// Turn off current PIDs:
|
||||||
|
|
||||||
SetVpid( 0, DMX_OUT_DECODER);
|
SetVpid( 0x1FFF, DMX_OUT_DECODER);
|
||||||
SetApid1(0, DMX_OUT_DECODER);
|
SetApid1(0x1FFF, DMX_OUT_DECODER);
|
||||||
SetApid2(0, DMX_OUT_DECODER);
|
SetApid2(0x1FFF, DMX_OUT_DECODER);
|
||||||
SetTpid( 0, DMX_OUT_DECODER);
|
SetTpid( 0x1FFF, DMX_OUT_DECODER);
|
||||||
|
|
||||||
bool ChannelSynced = false;
|
bool ChannelSynced = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user