From dd320af7f24a3b8030a7db960258d3e3f061af91 Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Sun, 7 Dec 2014 21:58:06 +0200 Subject: [PATCH] Fixed the session id quirk. --- tuner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tuner.c b/tuner.c index a508c8c..d8d51d9 100644 --- a/tuner.c +++ b/tuner.c @@ -197,8 +197,6 @@ bool cSatipTuner::Connect(void) // Flush any old content rtpM.Flush(); rtcpM.Flush(); - if (nextServerM && nextServerM->Quirk(cSatipServer::eSatipQuirkSessionId)) - rtspM.SetSession(SkipZeroes(*sessionM)); if (rtspM.Setup(*uri, rtpM.Port(), rtcpM.Port())) { keepAliveM.Set(timeoutM); if (nextServerM) { @@ -315,6 +313,8 @@ void cSatipTuner::SetSessionTimeout(const char *sessionP, int timeoutP) cMutexLock MutexLock(&mutexM); debug1("%s (%s, %d) [device %d]", __PRETTY_FUNCTION__, sessionP, timeoutP, deviceIdM); sessionM = sessionP; + if (nextServerM && nextServerM->Quirk(cSatipServer::eSatipQuirkSessionId) && !isempty(*sessionM) && startswith(*sessionM, "0")) + rtspM.SetSession(SkipZeroes(*sessionM)); timeoutM = (timeoutP > eMinKeepAliveIntervalMs) ? timeoutP : eMinKeepAliveIntervalMs; }