only read twice when the previous read returned max bytes
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 24 Oct 2006 09:00:01 +0000 (09:00 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 24 Oct 2006 09:00:01 +0000 (09:00 +0000)
lib/dvb/demux.cpp

index b0d9b40..0fbd6fb 100644 (file)
@@ -312,6 +312,8 @@ void eDVBPESReader::data(int)
                        m_read(buffer, r);
                else
                        eWarning("PES reader not active");
                        m_read(buffer, r);
                else
                        eWarning("PES reader not active");
+               if (r != 16384)
+                       break;
        }
 }
 
        }
 }