All pastes #871515 Raw Edit

Anonymous

public text v1 · immutable
#871515 ·published 2008-01-25 00:17 UTC
rendered paste body
Index: libs/libmythtv/dvbstreamhandler.cpp
===================================================================
--- libs/libmythtv/dvbstreamhandler.cpp (revision 15576)
+++ libs/libmythtv/dvbstreamhandler.cpp (working copy)
@@ -232,7 +232,7 @@
     if (_needs_buffering)
         _device_read_buffer = new DeviceReadBuffer(this);

-    int remainder = 0;
+    int remainder = 0, read_bytes = 0;
     int buffer_size = TSPacket::SIZE * 15000;
     unsigned char *buffer = new unsigned char[buffer_size];
     if (!buffer)
@@ -308,6 +308,11 @@
             usleep(100);
             continue;
         }
+        else if (read_bytes < 188 * 50)
+        {
+            read_bytes += len;
+            VERBOSE(VB_IMPORTANT, LOC + QString("Read %1 bytes so far.").arg(read_bytes));
+        }

         len += remainder;