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

Fixed keep-alive and retuning.

This commit is contained in:
Rolf Ahrenberg
2014-11-22 14:56:20 +02:00
parent 4e2e6d0b9b
commit 6d64a8b0a7
3 changed files with 12 additions and 6 deletions

View File

@@ -207,6 +207,7 @@ bool cSatipTuner::Connect(void)
return true;
}
}
streamIdM = -1;
error("Connect failed [device %d]", deviceIdM);
}
@@ -412,8 +413,8 @@ bool cSatipTuner::KeepAlive(bool forceP)
keepAliveM.Set(timeoutM);
forceP = true;
}
if (forceP && !isempty(*streamAddrM) && (streamIdM > 0)) {
cString uri = cString::sprintf("rtsp://%s/stream=%d", *streamAddrM, streamIdM);
if (forceP && !isempty(*streamAddrM)) {
cString uri = cString::sprintf("rtsp://%s/", *streamAddrM);
if (!rtspM.Options(*uri))
return false;
}