1
0
mirror of https://github.com/rofafor/vdr-plugin-satip.git synced 2023-10-10 11:37:42 +00:00

avoid empty and therefore useless requests to SATIP server

(cherry picked from commit 275afb68bc6a8a7fdc91600c8869815008c94d6d)
This commit is contained in:
FireFly 2022-10-17 16:18:53 +02:00 committed by Martin Dummer
parent 5b3d3a8fd9
commit 7a02076d8b

View File

@ -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();
}