summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThibaut Mattern <tmattern@users.sourceforge.net>2002-08-25 00:29:49 +0000
committerThibaut Mattern <tmattern@users.sourceforge.net>2002-08-25 00:29:49 +0000
commitf192128aef4e132bfd66d24face1fab9f3132f55 (patch)
tree5a6f677394e1208529f1221b9924da907b91d499 /src
parent57dd0a6109aba6c526dc4d575d914a93aadc65fe (diff)
downloadxine-lib-f192128aef4e132bfd66d24face1fab9f3132f55.tar.gz
xine-lib-f192128aef4e132bfd66d24face1fab9f3132f55.tar.bz2
Fix seeking with streams that don't have pts.
CVS patchset: 2512 CVS date: 2002/08/25 00:29:49
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_mpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/demuxers/demux_mpeg.c b/src/demuxers/demux_mpeg.c
index d846143d5..ae37831f2 100644
--- a/src/demuxers/demux_mpeg.c
+++ b/src/demuxers/demux_mpeg.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: demux_mpeg.c,v 1.71 2002/08/07 03:13:37 tmmm Exp $
+ * $Id: demux_mpeg.c,v 1.72 2002/08/25 00:29:49 tmattern Exp $
*
* demultiplexer for mpeg 1/2 program streams
* reads streams of variable blocksizes
@@ -235,7 +235,7 @@ static void check_newpts( demux_mpeg_t *this, int64_t pts, int video )
diff = pts - this->last_pts[video];
- if( !this->preview_mode && pts &&
+ if( !this->preview_mode && (pts || this->buf_flag_seek) &&
(this->send_newpts || (this->last_pts[video] && abs(diff)>WRAP_THRESHOLD) ) ) {
if (this->buf_flag_seek) {