Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
3d813d0e
Commit
3d813d0e
authored
Oct 31, 2011
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
old contribs: update live patch
patch in new contribs is different -> no update
parent
dfd11aa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
extras/contrib/src/Patches/live-inet_ntop.patch
extras/contrib/src/Patches/live-inet_ntop.patch
+23
-23
No files found.
extras/contrib/src/Patches/live-inet_ntop.patch
View file @
3d813d0e
...
@@ -158,7 +158,7 @@ diff -ru live.orig/liveMedia/RTSPClient.cpp live/liveMedia/RTSPClient.cpp
...
@@ -158,7 +158,7 @@ diff -ru live.orig/liveMedia/RTSPClient.cpp live/liveMedia/RTSPClient.cpp
diff -ru live.orig/liveMedia/RTSPServer.cpp live/liveMedia/RTSPServer.cpp
diff -ru live.orig/liveMedia/RTSPServer.cpp live/liveMedia/RTSPServer.cpp
--- live.orig/liveMedia/RTSPServer.cpp 2010-10-20 10:31:13.000000000 +0200
--- live.orig/liveMedia/RTSPServer.cpp 2010-10-20 10:31:13.000000000 +0200
+++ live/liveMedia/RTSPServer.cpp 2010-10-20 12:34:04.772177998 +0200
+++ live/liveMedia/RTSPServer.cpp 2010-10-20 12:34:04.772177998 +0200
@@ -11
1,11 +111
,12 @@
@@ -11
4,11 +114
,12 @@
char urlBuffer[100]; // more than big enough for "rtsp://<ip-address>:<port>/"
char urlBuffer[100]; // more than big enough for "rtsp://<ip-address>:<port>/"
portNumBits portNumHostOrder = ntohs(fRTSPServerPort.num());
portNumBits portNumHostOrder = ntohs(fRTSPServerPort.num());
...
@@ -173,7 +173,7 @@ diff -ru live.orig/liveMedia/RTSPServer.cpp live/liveMedia/RTSPServer.cpp
...
@@ -173,7 +173,7 @@ diff -ru live.orig/liveMedia/RTSPServer.cpp live/liveMedia/RTSPServer.cpp
}
}
return strDup(urlBuffer);
return strDup(urlBuffer);
@@ -26
4,7 +265
,8 @@
@@ -26
2,7 +263
,8 @@
increaseSendBufferTo(envir(), clientSocket, 50*1024);
increaseSendBufferTo(envir(), clientSocket, 50*1024);
#ifdef DEBUG
#ifdef DEBUG
...
@@ -183,29 +183,29 @@ diff -ru live.orig/liveMedia/RTSPServer.cpp live/liveMedia/RTSPServer.cpp
...
@@ -183,29 +183,29 @@ diff -ru live.orig/liveMedia/RTSPServer.cpp live/liveMedia/RTSPServer.cpp
#endif
#endif
// Create a new object for this RTSP session.
// Create a new object for this RTSP session.
@@ -860,8 +862,10 @@
@@ -881,8 +883,10 @@
ReceivingInterfaceAddr = origReceivingInterfaceAddr;
ReceivingInterfaceAddr = origReceivingInterfaceAddr;
struct in_addr destinationAddr; destinationAddr.s_addr = destinationAddress;
struct in_addr destinationAddr; destinationAddr.s_addr = destinationAddress;
- char* destAddrStr = strDup(our_inet_ntoa(destinationAddr));
- char* destAddrStr = strDup(our_inet_ntoa(destinationAddr));
- char* sourceAddrStr = strDup(our_inet_ntoa(sourceAddr.sin_addr));
- char* sourceAddrStr = strDup(our_inet_ntoa(sourceAddr.sin_addr));
+ char destAddrStr[16];
+ char destAddrStr[16];
+ our_inet_ntoa(destinationAddr, destAddrStr);
+ our_inet_ntoa(destinationAddr, destAddrStr);
+ char sourceAddrStr[16];
+ char sourceAddrStr[16];
+ our_inet_ntoa(sourceAddr.sin_addr, sourceAddrStr);
+ our_inet_ntoa(sourceAddr.sin_addr, sourceAddrStr);
if (fIsMulticast) {
if (fIsMulticast) {
switch (streamingMode) {
switch (streamingMode) {
case RTP_UDP:
case RTP_UDP:
@@ -936,7 +940,7 @@
@@ -957,7 +961,7 @@
}
}
}
}
}
}
- delete[] destAddrStr; delete[] sourceAddrStr; delete[] streamingModeString;
- delete[] destAddrStr; delete[] sourceAddrStr; delete[] streamingModeString;
+ delete[] streamingModeString;
+ delete[] streamingModeString;
} while (0);
}
void RTSPServer::RTSPClientSession
delete[] concatenatedStreamName;
@@ -1
446,7 +1450
,8 @@
@@ -1
540,7 +1544
,8 @@
// If this gets called, the client session is assumed to have timed out,
// If this gets called, the client session is assumed to have timed out,
// so delete it:
// so delete it:
#ifdef DEBUG
#ifdef DEBUG
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment