From: ghost Date: Thu, 3 Sep 2009 14:34:21 +0000 (+0200) Subject: Merge branch 'master' of git.opendreambox.org:/git/enigma2 X-Git-Url: http://code.vuplus.com/gitweb/?a=commitdiff_plain;h=eb7939bd2988c40f56af80a64a557e2c41a896c9;hp=a053f35db7edbd467bf01b9054d90dad3ce12803;p=vuplus_dvbapp Merge branch 'master' of git.opendreambox.org:/git/enigma2 --- diff --git a/lib/dvb/tstools.cpp b/lib/dvb/tstools.cpp index 06e8ba0..a9eef40 100644 --- a/lib/dvb/tstools.cpp +++ b/lib/dvb/tstools.cpp @@ -662,7 +662,8 @@ int eDVBTSTools::findNextPicture(off_t &offset, size_t &len, int &distance, int off_t new_offset = offset; size_t new_len = len; - + int first = 1; + while (distance > 0) { int dir = direction; @@ -676,8 +677,9 @@ int eDVBTSTools::findNextPicture(off_t &offset, size_t &len, int &distance, int // eDebug("we moved %d, %d to go frames (now at %llx)", dir, distance, new_offset); - if (distance >= 0) + if (distance >= 0 || first) { + first = 0; offset = new_offset; len = new_len; nr_frames += abs(dir);