Skip to content

Commit

Permalink
Add an upper limit for pid validity according to the SAT>IP specifica…
Browse files Browse the repository at this point in the history
…tion.
  • Loading branch information
rofafor committed Oct 21, 2018
1 parent 299296b commit 6c74c10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion device.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ void cSatipDevice::SetChannelTuned(void)
bool cSatipDevice::SetPid(cPidHandle *handleP, int typeP, bool onP)
{
debug12("%s (%d, %d, %d) [device %u]", __PRETTY_FUNCTION__, handleP ? handleP->pid : -1, typeP, onP, deviceIndexM);
if (pTunerM && handleP && handleP->pid >= 0) {
if (pTunerM && handleP && handleP->pid >= 0 && handleP->pid <= 8191) {

This comment has been minimized.

Copy link
@9000h

9000h Oct 21, 2018

so full-transponder magic PID 8192 is not needed?

This comment has been minimized.

Copy link
@rofafor

rofafor Oct 21, 2018

Author Owner

Well, in SAT>IP that magic pid is "pids=all" and VDR interface doesn't need such a trick.

This comment has been minimized.

Copy link
@meijkl

meijkl Oct 22, 2018

Thank you!

if (onP)
return pTunerM->SetPid(handleP->pid, typeP, true);
else if (!handleP->used && pSectionFilterHandlerM && !pSectionFilterHandlerM->Exists(handleP->pid))
Expand Down

0 comments on commit 6c74c10

Please sign in to comment.