From 2afd232d6d9b3b09636729505d8fd32a1cc51abb Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Sat, 4 May 2002 17:26:15 +0000 Subject: Playing the same file after a xine_stop() was unworkable. Fixed (i hope i haven't break anything). CVS patchset: 1851 CVS date: 2002/05/04 17:26:15 --- src/demuxers/demux_avi.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/demuxers/demux_avi.c b/src/demuxers/demux_avi.c index d7e1cace9..e71d2687f 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.81 2002/04/29 23:31:59 jcdutton Exp $ + * $Id: demux_avi.c,v 1.82 2002/05/04 17:26:15 f1rmb Exp $ * * demultiplexer for avi streams * @@ -1237,11 +1237,10 @@ static int demux_avi_open(demux_plugin_t *this_gen, this->input = input; - if (strncmp(this->last_mrl, input->get_mrl (input), 1024)) { - if (this->avi) - AVI_close (this->avi); - this->avi = AVI_init (this); - } + if (this->avi) + AVI_close (this->avi); + + this->avi = AVI_init (this); if (this->avi) { @@ -1278,11 +1277,10 @@ static int demux_avi_open(demux_plugin_t *this_gen, this->input = input; - if (strncmp(this->last_mrl, input->get_mrl (input), 1024)) { - if (this->avi) - AVI_close (this->avi); - this->avi = AVI_init (this); - } + if (this->avi) + AVI_close (this->avi); + + this->avi = AVI_init (this); if (this->avi) { strncpy(this->last_mrl, input->get_mrl (input), 1024); -- cgit v1.2.3