only read twice when the previous read returned max bytes
[enigma2.git] / 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");
+               if (r != 16384)
+                       break;
        }
 }