Index: dvbcut/src/mpgfile.cpp
===================================================================
RCS file: /var/cvs/sys/qt3/dvbcut/src/mpgfile.cpp,v
retrieving revision 1.3
diff -u -r1.3 mpgfile.cpp
--- dvbcut/src/mpgfile.cpp	23 Jun 2006 12:14:02 -0000	1.3
+++ dvbcut/src/mpgfile.cpp	28 Jul 2006 21:10:41 -0000
@@ -264,7 +264,7 @@
   streamdata *sd=sh.newstream(audiostream(aud),s[audiostream(aud)].type,istransportstream());
 
   while (sd->empty()) {
-    if (sh.fileposition<stopreadpos && streamreader(sh)<=0)
+    if (sh.fileposition > stopreadpos || streamreader(sh)<=0)
       return; // data does not reach the point in time from which we like to start playing
     while (!sd->empty() &&
            !(sd->itemlist().begin()->headerhaspts()&&sd->itemlist().begin()->data_alignment_indicator()))
@@ -272,7 +272,7 @@
     }
 
   for(;;) {
-    if (sh.fileposition<stopreadpos && streamreader(sh)<=0)
+    if (sh.fileposition > stopreadpos || streamreader(sh)<=0)
       return; // data does not reach the point in time from which we like to start playing
     if (sd->empty())
       continue;

