gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/rtmp r9605: reduce verbosity


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/rtmp r9605: reduce verbosity
Date: Wed, 27 Aug 2008 19:23:11 -0600
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9605
committer: address@hidden
branch nick: rtmp
timestamp: Wed 2008-08-27 19:23:11 -0600
message:
  reduce verbosity
modified:
  libnet/network.cpp
=== modified file 'libnet/network.cpp'
--- a/libnet/network.cpp        2008-08-16 04:18:01 +0000
+++ b/libnet/network.cpp        2008-08-28 01:23:11 +0000
@@ -20,10 +20,6 @@
 #include "gnashconfig.h"
 #endif
 
-#ifdef HAVE_PTHREADS
-#include <pthread.h>
-#endif
-
 #include "utility.h"
 #include "log.h"
 #include "network.h"
@@ -689,7 +685,7 @@
 amf::Buffer *
 Network::readNet()
 {
-    GNASH_REPORT_FUNCTION;
+//    GNASH_REPORT_FUNCTION;
 
     amf::Buffer *buffer = new amf::Buffer;
     int nbytes = readNet(buffer);
@@ -705,42 +701,50 @@
 int
 Network::readNet(amf::Buffer *buffer)
 {
-    GNASH_REPORT_FUNCTION;
+//    GNASH_REPORT_FUNCTION;
     return readNet(_sockfd, buffer->reference(), buffer->size(), _timeout);
 }
 
 int
 Network::readNet(amf::Buffer *buffer, int timeout)
 {
-    GNASH_REPORT_FUNCTION;
+//    GNASH_REPORT_FUNCTION;
     return readNet(_sockfd, buffer->reference(), buffer->size(), timeout);
 }
 
 int
 Network::readNet(byte_t *buffer, int nbytes)
 {
+//    GNASH_REPORT_FUNCTION;
     return readNet(_sockfd, buffer, nbytes, _timeout);
 }
 
 int
 Network::readNet(byte_t *buffer, int nbytes, int timeout)
 {
+//    GNASH_REPORT_FUNCTION;
     return readNet(_sockfd, buffer, nbytes, timeout);
 }
 
 int
 Network::readNet(int fd, byte_t *buffer, int nbytes)
 {
+//    GNASH_REPORT_FUNCTION;
     return readNet(fd, buffer, nbytes, _timeout);
 }
 
 int
 Network::readNet(int fd, byte_t *buffer, int nbytes, int timeout)
 {
+//    GNASH_REPORT_FUNCTION;
+
     fd_set              fdset;
     int                 ret = -1;
     struct timeval      tval;
 
+    if (_debug) {
+       log_debug (_("Trying to read %d bytes from fd #%d"), nbytes, fd);
+    }
 #ifdef NET_TIMING
     if (_timing_debug)
     {


reply via email to

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