Hi, the following diff updates net/livemedia to latest version (20080725) and fixes an annoying problem i was having with my rtsp//tv-over-ip service with my isp (free.fr). Previously, after 30 seconds nothing was sent on the connexion, and the image was frozen, either with mplayer or vlc. With this patch, vlc play the stream fine (needs to be recompiled btw), and no freeze/timeout happens. This will probably be commited post-unlock, but the diff is here if anyone had encountered the same problem and want to try it. It has been discussed with one the vlc dev, who agreed livemedia was a moving target which breaks often.
Landry
Index: Makefile =================================================================== RCS file: /cvs/ports/net/livemedia/Makefile,v retrieving revision 1.7 diff -u -r1.7 Makefile --- Makefile 15 Jul 2008 16:14:24 -0000 1.7 +++ Makefile 2 Aug 2008 11:52:44 -0000 @@ -4,8 +4,8 @@ COMMENT= LIVE555 streaming media library -DISTNAME= live.2008.07.06 -PKGNAME= liveMedia-20080706 +DISTNAME= live.2008.07.25 +PKGNAME= liveMedia-20080725 CATEGORIES= net devel MASTER_SITES= http://comstyle.com/source/ Index: distinfo =================================================================== RCS file: /cvs/ports/net/livemedia/distinfo,v retrieving revision 1.5 diff -u -r1.5 distinfo --- distinfo 15 Jul 2008 16:14:24 -0000 1.5 +++ distinfo 2 Aug 2008 11:52:44 -0000 @@ -1,5 +1,5 @@ -MD5 (live.2008.07.06.tar.gz) = FmN9c3wGg/6yPIWBG1dGxQ== -RMD160 (live.2008.07.06.tar.gz) = rpJC6FrKMIOP/m5/WdE2i5ai+Ag= -SHA1 (live.2008.07.06.tar.gz) = SFfV8JWr3ZP+EpK1cDQS6pRSzY8= -SHA256 (live.2008.07.06.tar.gz) = I2DvDSi+O8yMQUgilMpu0oeRHOUyY/y5DTfF29IUV/w= -SIZE (live.2008.07.06.tar.gz) = 449589 +MD5 (live.2008.07.25.tar.gz) = Mue9L9sE0LBUYrJNQkCexw== +RMD160 (live.2008.07.25.tar.gz) = w6fox5ylR1OAM4ni0PydGP6MJ+Y= +SHA1 (live.2008.07.25.tar.gz) = +8hLKxYhKiiR1Ye/9Iv7iCJxanw= +SHA256 (live.2008.07.25.tar.gz) = Qjt0mXs3tUf+rtXgHQI3FLEHfhOuQR3uDzwsg/aex6g= +SIZE (live.2008.07.25.tar.gz) = 449624 Index: patches/patch-liveMedia_RTSPClient_cpp =================================================================== RCS file: patches/patch-liveMedia_RTSPClient_cpp diff -N patches/patch-liveMedia_RTSPClient_cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-liveMedia_RTSPClient_cpp 2 Aug 2008 11:52:44 -0000 @@ -0,0 +1,15 @@ +$OpenBSD$ +Fixes tv-over-ip with my isp (free.fr) using vlc. +--- liveMedia/RTSPClient.cpp.orig Sat Aug 2 13:44:39 2008 ++++ liveMedia/RTSPClient.cpp Sat Aug 2 13:45:14 2008 +@@ -2100,9 +2100,7 @@ unsigned RTSPClient::getResponse1(char*& responseBuffe + Boolean success = False; + while (1) { + unsigned char firstByte; +- struct timeval timeout; +- timeout.tv_sec = 30; timeout.tv_usec = 0; +- if (readSocket(envir(), fInputSocketNum, &firstByte, 1, fromAddress, &timeout) ++ if (readSocket(envir(), fInputSocketNum, &firstByte, 1, fromAddress) + != 1) break; + if (firstByte != '$') { + // Normal case: This is the start of a regular response; use it: