From 6005c2ffc64c8d612907c42f184c824cde0b736c Mon Sep 17 00:00:00 2001 From: mpromonet Date: Sun, 31 Jan 2021 11:27:47 +0100 Subject: [PATCH] fix #229: build with live2021.01.29 --- main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.cpp b/main.cpp index 6100340..80ef5b3 100755 --- a/main.cpp +++ b/main.cpp @@ -523,7 +523,11 @@ int main(int argc, char** argv) nbSource += rtspServer.addSession(baseUrl+tsurl, subSession); struct in_addr ip; +#if LIVEMEDIA_LIBRARY_VERSION_INT < 1611878400 ip.s_addr = ourIPAddress(*rtspServer.env()); +#else + ip.s_addr = ourIPv4Address(*rtspServer.env()); +#endif LOG(NOTICE) << "HLS http://" << inet_ntoa(ip) << ":" << rtspPort << "/" << baseUrl+tsurl << ".m3u8"; LOG(NOTICE) << "MPEG-DASH http://" << inet_ntoa(ip) << ":" << rtspPort << "/" << baseUrl+tsurl << ".mpd"; }