From 7a02076d8b88962628f1bbe3a5b0082a75d26041 Mon Sep 17 00:00:00 2001 From: FireFly Date: Mon, 17 Oct 2022 16:18:53 +0200 Subject: [PATCH] avoid empty and therefore useless requests to SATIP server (cherry picked from commit 275afb68bc6a8a7fdc91600c8869815008c94d6d) --- tuner.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tuner.c b/tuner.c index bfa3d41..b5af331 100644 --- a/tuner.c +++ b/tuner.c @@ -553,9 +553,11 @@ bool cSatipTuner::UpdatePids(bool forceP) tnrParamM = param; } } - pidUpdateCacheM.Set(ePidUpdateIntervalMs); - if (!rtspM.Play(*uri)) - return false; + if (paramadded) { + pidUpdateCacheM.Set(ePidUpdateIntervalMs); + if (!rtspM.Play(*uri)) + return false; + } addPidsM.Clear(); delPidsM.Clear(); }