comparison libmpdemux/realrtsp/rtsp.c @ 16372:b313a38c69cb

replace sleep with usec_sleep, required for recent mingw versions, patch by Robert Swain <robert.swain at gmail.com>
author faust3
date Sat, 03 Sep 2005 10:58:52 +0000
parents 06a9914af502
children 7d0773bb1e42
comparison
equal deleted inserted replaced
16371:f3e6984c415c 16372:b313a38c69cb
179 #ifndef HAVE_WINSOCK2 179 #ifndef HAVE_WINSOCK2
180 if ((timeout>0) && ((errno == EAGAIN) || (errno == EINPROGRESS))) { 180 if ((timeout>0) && ((errno == EAGAIN) || (errno == EINPROGRESS))) {
181 #else 181 #else
182 if ((timeout>0) && ((errno == EAGAIN) || (WSAGetLastError() == WSAEINPROGRESS))) { 182 if ((timeout>0) && ((errno == EAGAIN) || (WSAGetLastError() == WSAEINPROGRESS))) {
183 #endif 183 #endif
184 sleep (1); timeout--; 184 usec_sleep (1000000); timeout--;
185 } else 185 } else
186 return -1; 186 return -1;
187 } 187 }
188 } 188 }
189 189