gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r9908: Use GnashSleep in rtmp_client


From: Benjamin Wolsey
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r9908: Use GnashSleep in rtmp_client.cpp. A FIXME suggests it might be better to
Date: Fri, 03 Oct 2008 12:01:22 +0200
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9908
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Fri 2008-10-03 12:01:22 +0200
message:
  Use GnashSleep in rtmp_client.cpp. A FIXME suggests it might be better to
  drop the sleep entirely, but since I don't know I'll leave this to
  someone else.
modified:
  libnet/rtmp_client.cpp
=== modified file 'libnet/rtmp_client.cpp'
--- a/libnet/rtmp_client.cpp    2008-09-06 07:35:31 +0000
+++ b/libnet/rtmp_client.cpp    2008-10-03 10:01:22 +0000
@@ -24,7 +24,6 @@
 #include <iostream>
 #include <string>
 #include <map>
-#include <unistd.h> // for sleep()
 
 #if ! (defined(_WIN32) || defined(WIN32))
 #      include <netinet/in.h>
@@ -40,6 +39,7 @@
 #include "handler.h"
 #include "utility.h"
 #include "buffer.h"
+#include "GnashSleep.h"
 
 using namespace gnash;
 using namespace std;
@@ -399,7 +399,7 @@
     int ret = 0;
     _handshake->clear();
     
-    sleep(1);                  // FIXME: why do we still need a delay here, 
when readNet() does a select ?
+    gnashSleep(1000000); // FIXME: why do we still need a delay here, when 
readNet() does a select ?
     ret = readNet(_handshake->reference(), RTMP_BODY_SIZE);
     if (ret == RTMP_BODY_SIZE) {
         log_debug (_("Read first data block in handshake"));


reply via email to

[Prev in Thread] Current Thread [Next in Thread]