From 45397cd1635a825156311a3f0b5302885d210bea Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Sat, 19 Oct 2002 18:37:03 +0000 Subject: send start header first CVS patchset: 2860 CVS date: 2002/10/19 18:37:03 --- src/demuxers/demux_avi.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/demuxers/demux_avi.c b/src/demuxers/demux_avi.c index c632296be..68d70c04f 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.118 2002/10/19 17:42:52 guenter Exp $ + * $Id: demux_avi.c,v 1.119 2002/10/19 18:37:03 guenter Exp $ * * demultiplexer for avi streams * @@ -1261,6 +1261,15 @@ static void demux_avi_send_headers (demux_plugin_t *this_gen) { this->stream->stream_info[XINE_STREAM_INFO_HAS_VIDEO] = 1; 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 */ @@ -1474,15 +1483,6 @@ static int demux_avi_start (demux_plugin_t *this_gen, } } - /* - * send start buffers - */ - if ( !this->thread_running && (this->status == DEMUX_OK) ) { - xine_demux_control_start (this->stream); - } else { - xine_demux_flush_engine (this->stream); - } - if (this->status == DEMUX_OK) xine_demux_control_newpts (this->stream, video_pts, BUF_FLAG_SEEK); -- cgit v1.2.3