[vlc-commits] commit: Contribs: update live555 patch (Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Tue Aug 24 15:38:39 CEST 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Aug 24 15:37:53 2010 +0200| [b0eb44053c3fffdf04b00f5e0cd1986c7fdf848f] | committer: Jean-Baptiste Kempf 

Contribs: update live555 patch

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b0eb44053c3fffdf04b00f5e0cd1986c7fdf848f
---

 extras/contrib/src/Patches/live-inet_ntop.patch |   13 ------
 extras/contrib/src/Patches/live-uselocale.patch |   49 ++++++++++++++++------
 2 files changed, 35 insertions(+), 27 deletions(-)

diff --git a/extras/contrib/src/Patches/live-inet_ntop.patch b/extras/contrib/src/Patches/live-inet_ntop.patch
index 65a2a75..22f7d41 100644
--- a/extras/contrib/src/Patches/live-inet_ntop.patch
+++ b/extras/contrib/src/Patches/live-inet_ntop.patch
@@ -142,19 +142,6 @@ diff -ru live.orig/liveMedia/PassiveServerMediaSubsession.cpp live/liveMedia/Pas
  
      fSDPLines = strDup(sdpLines);
      delete[] sdpLines;
-diff -ru live.orig/liveMedia/RTSPClient.cpp live/liveMedia/RTSPClient.cpp
---- live.orig/liveMedia/RTSPClient.cpp	2010-05-30 01:20:31.000000000 +0300
-+++ live/liveMedia/RTSPClient.cpp	2010-06-06 00:39:08.000000000 +0300
-@@ -415,7 +415,8 @@
- int RTSPClient::connectToServer(int socketNum, portNumBits remotePortNum) {
-   MAKE_SOCKADDR_IN(remoteName, fServerAddress, htons(remotePortNum));
-   if (fVerbosityLevel >= 1) {
--    envir() << "Opening connection to " << our_inet_ntoa(remoteName.sin_addr) << ", port " << remotePortNum << "...\n";
-+    char buf[16];
-+    envir() << "Opening connection to " << our_inet_ntoa(remoteName.sin_addr, buf) << ", port " << remotePortNum << "...\n";
-   }
-   if (connect(socketNum, (struct sockaddr*) &remoteName, sizeof remoteName) != 0) {
-     if (envir().getErrno() == EINPROGRESS) {
 diff -ru live.orig/liveMedia/RTSPOverHTTPServer.cpp live/liveMedia/RTSPOverHTTPServer.cpp
 --- live.orig/liveMedia/RTSPOverHTTPServer.cpp	2010-05-30 01:20:31.000000000 +0300
 +++ live/liveMedia/RTSPOverHTTPServer.cpp	2010-06-06 00:34:03.000000000 +0300
diff --git a/extras/contrib/src/Patches/live-uselocale.patch b/extras/contrib/src/Patches/live-uselocale.patch
index 7611019..67c03ea 100644
--- a/extras/contrib/src/Patches/live-uselocale.patch
+++ b/extras/contrib/src/Patches/live-uselocale.patch
@@ -66,27 +66,48 @@ diff -urN live.orig/liveMedia/Locale.cpp live/liveMedia/Locale.cpp
    }
  #endif
  }
-diff -ru live/liveMedia/RTSPClient.cpp live_fixed/liveMedia/RTSPClient.cpp
---- live/liveMedia/RTSPClient.cpp	2010-06-04 21:16:00.000000000 +0200
-+++ live_fixed/liveMedia/RTSPClient.cpp	2010-06-04 21:15:19.000000000 +0200
-@@ -923,7 +923,7 @@
- }
+--- live.orig/liveMedia/RTSPClient.cpp	2010-03-16 03:09:46.000000000 +0100
++++ live/liveMedia/RTSPClient.cpp	2010-08-24 15:04:31.000000000 +0200
+@@ -1019,7 +1019,7 @@
+     // This is the default value; we don't need a "Scale:" header:
+     buf[0] = '\0';
+   } else {
+-    Locale l("C", LC_NUMERIC);
++    Locale l("C", LC_NUMERIC_MASK);
+     sprintf(buf, "Scale: %f\r\n", scale);
+   }
+ 
+@@ -1033,11 +1033,11 @@
+     buf[0] = '\0';
+   } else if (end < 0) {
+     // There's no end time:
+-    Locale l("C", LC_NUMERIC);
++    Locale l("C", LC_NUMERIC_MASK);
+     sprintf(buf, "Range: npt=%.3f-\r\n", start);
+   } else {
+     // There's both a start and an end time; include them both in the "Range:" hdr
+-    Locale l("C", LC_NUMERIC);
++    Locale l("C", LC_NUMERIC_MASK);
+     sprintf(buf, "Range: npt=%.3f-%.3f\r\n", start, end);
+   }
+ 
+@@ -2328,7 +2328,7 @@
+   if (_strncasecmp(line, "Scale: ", 7) != 0) return False;
+   line += 7;
  
- Boolean RTSPClient::parseScaleParam(char const* paramStr, float& scale) {
 -  Locale l("C", LC_NUMERIC);
 +  Locale l("C", LC_NUMERIC_MASK);
-   return sscanf(paramStr, "%f", &scale) == 1;
+   return sscanf(line, "%f", &scale) == 1;
  }
  
-diff -ru live/liveMedia/RTSPCommon.cpp live_fixed/liveMedia/RTSPCommon.cpp
---- live/liveMedia/RTSPCommon.cpp	2010-06-04 21:16:00.000000000 +0200
-+++ live_fixed/liveMedia/RTSPCommon.cpp	2010-06-04 21:15:45.000000000 +0200
-@@ -136,7 +136,7 @@
- 
- Boolean parseRangeParam(char const* paramStr, double& rangeStart, double& rangeEnd) {
+--- live.orig/liveMedia/RTSPCommon.cpp	2010-03-16 03:09:46.000000000 +0100
++++ live/liveMedia/RTSPCommon.cpp	2010-08-24 15:04:44.000000000 +0200
+@@ -146,7 +146,7 @@
+   char const* fields = buf + 7;
+   while (*fields == ' ') ++fields;
    double start, end;
 -  Locale l("C", LC_NUMERIC);
 +  Locale l("C", LC_NUMERIC_MASK);
-   if (sscanf(paramStr, "npt = %lf - %lf", &start, &end) == 2) {
+   if (sscanf(fields, "npt = %lf - %lf", &start, &end) == 2) {
      rangeStart = start;
      rangeEnd = end;



More information about the vlc-commits mailing list