aboutsummaryrefslogtreecommitdiff
path: root/ports/librtmp/hide_netstackdump.patch
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-10-05 15:12:13 -0700
committerGitHub <noreply@github.com>2017-10-05 15:12:13 -0700
commit1946a8ca9425068b7fd4b465c871bd1a50e5f2f5 (patch)
tree071878b778907ab4e1f3508b715e5e30755472f1 /ports/librtmp/hide_netstackdump.patch
parenta518ded266259141edd278e3f4025a3ab3211215 (diff)
parent887466dfc1ff8ed20d3b9268f76da987f7d53635 (diff)
downloadvcpkg-1946a8ca9425068b7fd4b465c871bd1a50e5f2f5.tar.gz
vcpkg-1946a8ca9425068b7fd4b465c871bd1a50e5f2f5.zip
Merge pull request #1928 from lazyhamster/librtmp
New port for librtmp 2.3
Diffstat (limited to 'ports/librtmp/hide_netstackdump.patch')
-rw-r--r--ports/librtmp/hide_netstackdump.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/ports/librtmp/hide_netstackdump.patch b/ports/librtmp/hide_netstackdump.patch
new file mode 100644
index 000000000..e2a5e4207
--- /dev/null
+++ b/ports/librtmp/hide_netstackdump.patch
@@ -0,0 +1,22 @@
+diff --git a/librtmp/rtmp.c b/librtmp/rtmp.c
+index f152648..0bf3f7d 100644
+--- a/librtmp/rtmp.c
++++ b/librtmp/rtmp.c
+@@ -1316,7 +1316,7 @@ ReadN(RTMP *r, char *buffer, int n)
+ SendBytesReceived(r);
+ }
+ /*RTMP_Log(RTMP_LOGDEBUG, "%s: %d bytes\n", __FUNCTION__, nBytes); */
+-#ifdef _DEBUG
++#if defined(_DEBUG) && !defined(LIBRTMP_ONLY)
+ fwrite(ptr, 1, nBytes, netstackdump_read);
+ #endif
+
+@@ -3527,7 +3527,7 @@ RTMPSockBuf_Send(RTMPSockBuf *sb, const char *buf, int len)
+ {
+ int rc;
+
+-#ifdef _DEBUG
++#if defined(_DEBUG) && !defined(LIBRTMP_ONLY)
+ fwrite(buf, 1, len, netstackdump);
+ #endif
+