diff --git a/libs/jrtplib/jrtplib.vcproj b/libs/jrtplib/jrtplib.vcproj index a383a8abc0..cce60ff682 100644 --- a/libs/jrtplib/jrtplib.vcproj +++ b/libs/jrtplib/jrtplib.vcproj @@ -290,18 +290,10 @@ Filter="h;hpp;hxx;hm;inl;inc;xsd" UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" > - <File - RelativePath=".\src\jmutex.h" - > - </File> <File RelativePath=".\src\jrtp4c.h" > </File> - <File - RelativePath=".\src\jthread.h" - > - </File> <File RelativePath=".\src\rtcpapppacket.h" > @@ -484,18 +476,10 @@ Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" > - <File - RelativePath=".\src\win32\jmutex.cpp" - > - </File> <File RelativePath=".\src\jrtp4c.cpp" > </File> - <File - RelativePath=".\src\win32\jthread.cpp" - > - </File> <File RelativePath=".\src\rtcpapppacket.cpp" > diff --git a/libs/jrtplib/src/jrtp4c.cpp b/libs/jrtplib/src/jrtp4c.cpp index dfeb215b35..9a6b34a57a 100644 --- a/libs/jrtplib/src/jrtp4c.cpp +++ b/libs/jrtplib/src/jrtp4c.cpp @@ -143,8 +143,12 @@ void jrtp4c_destroy(struct jrtp4c **jrtp4c) jrtp4c_killread(*jrtp4c); while (((*jrtp4c)->flags & JF_READ) || ((*jrtp4c)->flags & JF_WRITE)) { +#ifdef WIN32 + Sleep(1); +#else usleep(1000); sched_yield(); +#endif }; (*jrtp4c)->session->BYEDestroy(RTPTime(10,0),0,0); diff --git a/libs/jrtplib/src/rtpconfig_win.h b/libs/jrtplib/src/rtpconfig_win.h index 43602664ec..1ca60d502e 100644 --- a/libs/jrtplib/src/rtpconfig_win.h +++ b/libs/jrtplib/src/rtpconfig_win.h @@ -36,7 +36,7 @@ #define RTP_SUPPORT_IPV4MULTICAST -#define RTP_SUPPORT_THREAD +//#define RTP_SUPPORT_THREAD #define RTP_SUPPORT_PROBATION