diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2004-04-09 16:07:10 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2004-04-09 16:07:10 +0000 |
commit | b145276a3d0ddadfba39717dfb8bed3b87554fe2 (patch) | |
tree | 5bf099b52b850308ec9e0e7e1c0d395a5269f247 | |
parent | bc9e4e15a9e9a313e5835694da114f6b6ba350c1 (diff) | |
download | xine-lib-b145276a3d0ddadfba39717dfb8bed3b87554fe2.tar.gz xine-lib-b145276a3d0ddadfba39717dfb8bed3b87554fe2.tar.bz2 |
fix playing LPCM (tag preview pack) - fix Fever.vob
CVS patchset: 6365
CVS date: 2004/04/09 16:07:10
-rw-r--r-- | src/demuxers/demux_mpeg.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/demuxers/demux_mpeg.c b/src/demuxers/demux_mpeg.c index f18083610..b9d2ac18d 100644 --- a/src/demuxers/demux_mpeg.c +++ b/src/demuxers/demux_mpeg.c @@ -19,7 +19,7 @@ */ /* - * $Id: demux_mpeg.c,v 1.135 2004/03/03 20:09:11 mroi Exp $ + * $Id: demux_mpeg.c,v 1.136 2004/04/09 16:07:10 miguelfreitas Exp $ * * demultiplexer for mpeg 1/2 program streams * reads streams of variable blocksizes @@ -382,6 +382,14 @@ static void parse_mpeg2_packet (demux_mpeg_t *this, int stream_id, int64_t scr) check_newpts( this, pts, PTS_AUDIO ); + if (this->preview_mode) + buf->decoder_flags |= BUF_FLAG_PREVIEW; + + buf->extra_info->input_pos = this->input->get_current_pos (this->input); + if (this->rate) + buf->extra_info->input_time = (int)((int64_t)buf->extra_info->input_pos + * 1000 / (this->rate * 50)); + if(this->audio_fifo) this->audio_fifo->put (this->audio_fifo, buf); else |