diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-10-19 19:47:27 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-10-19 19:47:27 +0000 |
commit | 946822db0bab881f49563d6fd911f92bc287fbe9 (patch) | |
tree | 260411f224b35a67c373962207f19523db86605b | |
parent | 3d2c30a554f67ce071aedf8e1a173d0b4da36d3f (diff) | |
download | xine-lib-946822db0bab881f49563d6fd911f92bc287fbe9.tar.gz xine-lib-946822db0bab881f49563d6fd911f92bc287fbe9.tar.bz2 |
fast seeking enabled
CVS patchset: 2863
CVS date: 2002/10/19 19:47:27
-rw-r--r-- | src/demuxers/demux_avi.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/demuxers/demux_avi.c b/src/demuxers/demux_avi.c index 68d70c04f..0148fdd30 100644 --- a/src/demuxers/demux_avi.c +++ b/src/demuxers/demux_avi.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_avi.c,v 1.119 2002/10/19 18:37:03 guenter Exp $ + * $Id: demux_avi.c,v 1.120 2002/10/19 19:47:27 guenter Exp $ * * demultiplexer for avi streams * @@ -1262,22 +1262,15 @@ static void demux_avi_send_headers (demux_plugin_t *this_gen) { this->stream->stream_info[XINE_STREAM_INFO_HAS_AUDIO] = !this->no_audio; /* - * send start buffers - */ - if (!this->thread_running) { - xine_demux_control_start (this->stream); - } else { - xine_demux_flush_engine (this->stream); - } - - /* - * send header buffers + * send start/header buffers */ if (!this->thread_running) { buf_element_t *buf; + xine_demux_control_start (this->stream); + buf = this->video_fifo->buffer_pool_alloc (this->video_fifo); buf->decoder_flags = BUF_FLAG_HEADER; buf->decoder_info[1] = this->video_step; @@ -1483,6 +1476,9 @@ static int demux_avi_start (demux_plugin_t *this_gen, } } + if (this->thread_running) + xine_demux_flush_engine (this->stream); + if (this->status == DEMUX_OK) xine_demux_control_newpts (this->stream, video_pts, BUF_FLAG_SEEK); |