From 9638a1573b2cca57dbefc81ba8fbcd5627056ba1 Mon Sep 17 00:00:00 2001 From: mpromonet Date: Mon, 15 Nov 2021 08:17:40 +0100 Subject: [PATCH] fix #259 --- src/HTTPServer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/HTTPServer.cpp b/src/HTTPServer.cpp index 161ca04..b4895a0 100644 --- a/src/HTTPServer.cpp +++ b/src/HTTPServer.cpp @@ -342,7 +342,12 @@ void HTTPServer::HTTPClientConnection::handleHTTPCmd_StreamingGET(char const* ur sockaddr_storage clientAddress = { 0 }; sockaddr_storage destinationAddress = { 0 }; #endif +#if LIVEMEDIA_LIBRARY_VERSION_INT < 1636848000 subsession->getStreamParameters(m_ClientSessionId, clientAddress, clientRTPPort, clientRTCPPort, -1, 0, 0, destinationAddress, destinationTTL, isMulticast, serverRTPPort, serverRTCPPort, m_StreamToken); +#else + + subsession->getStreamParameters(m_ClientSessionId, clientAddress, clientRTPPort, clientRTCPPort, -1, 0, 0, NULL, destinationAddress, destinationTTL, isMulticast, serverRTPPort, serverRTCPPort, m_StreamToken); +#endif // Seek the stream source to the desired place, with the desired duration, and (as a side effect) get the number of bytes: double dOffsetInSeconds = (double)offsetInSeconds;