vcpkg/ports/librtmp/hide_netstackdump.patch

23 lines
614 B
Diff
Raw Normal View History

2017-10-05 20:56:49 +08:00
diff --git a/librtmp/rtmp.c b/librtmp/rtmp.c
2018-01-09 04:12:37 +08:00
index 5ef3ae9..e559c6e 100644
2017-10-05 20:56:49 +08:00
--- a/librtmp/rtmp.c
+++ b/librtmp/rtmp.c
2018-01-09 04:12:37 +08:00
@@ -1333,7 +1333,7 @@ ReadN(RTMP *r, char *buffer, int n)
2017-10-05 20:56:49 +08:00
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
2018-01-09 04:12:37 +08:00
@@ -3553,7 +3553,7 @@ RTMPSockBuf_Send(RTMPSockBuf *sb, const char *buf, int len)
2017-10-05 20:56:49 +08:00
{
int rc;
-#ifdef _DEBUG
+#if defined(_DEBUG) && !defined(LIBRTMP_ONLY)
fwrite(buf, 1, len, netstackdump);
#endif