提交 d45248d6 编写于 作者: P Palana

Add preprocessor flag for librtmp network dumps

Fixes debug compilation on non-WIN32 targets due to undefined
netstackdump(_read) symbols
上级 92522d18
......@@ -1658,7 +1658,7 @@ RTMP_ClientPacket(RTMP *r, RTMPPacket *packet)
return bHasMediaPacket;
}
#if defined(_DEBUG) && !defined(WIN32)
#if defined(RTMP_NETSTACK_DUMP)
extern FILE *netstackdump;
extern FILE *netstackdump_read;
#endif
......@@ -1746,7 +1746,7 @@ ReadN(RTMP *r, char *buffer, int n)
return FALSE;
}
/*RTMP_Log(RTMP_LOGDEBUG, "%s: %d bytes\n", __FUNCTION__, nBytes); */
#if defined(_DEBUG) && !defined(WIN32)
#if defined(RTMP_NETSTACK_DUMP)
fwrite(ptr, 1, nBytes, netstackdump_read);
#endif
......@@ -4668,7 +4668,7 @@ RTMPSockBuf_Send(RTMPSockBuf *sb, const char *buf, int len)
{
int rc;
#if defined(_DEBUG) && !defined(WIN32)
#if defined(RTMP_NETSTACK_DUMP)
fwrite(buf, 1, len, netstackdump);
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册