summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_avi.c
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-06-16 14:34:48 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-06-16 14:34:48 +0000
commit528a7fbfe28ea118599df54bdb17b4c5f4850704 (patch)
tree911cee93cc6b5fcc7ce6c6b9540d1802635f9cc8 /src/demuxers/demux_avi.c
parent6756ef958edc37a504f7ec4e1645e7b22ba8967c (diff)
downloadxine-lib-528a7fbfe28ea118599df54bdb17b4c5f4850704.tar.gz
xine-lib-528a7fbfe28ea118599df54bdb17b4c5f4850704.tar.bz2
more seeking/stopping bugfixes
CVS patchset: 191 CVS date: 2001/06/16 14:34:48
Diffstat (limited to 'src/demuxers/demux_avi.c')
-rw-r--r--src/demuxers/demux_avi.c22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/demuxers/demux_avi.c b/src/demuxers/demux_avi.c
index 87f42e152..1c1bfe23d 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.17 2001/06/09 19:05:59 guenter Exp $
+ * $Id: demux_avi.c,v 1.18 2001/06/16 14:34:48 guenter Exp $
*
* demultiplexer for avi streams
*
@@ -845,8 +845,9 @@ static void *demux_avi_loop (void *this_gen) {
}
static void demux_avi_stop (demux_plugin_t *this_gen) {
- void *p;
- demux_avi_t *this = (demux_avi_t *) this_gen;
+ void *p;
+ demux_avi_t *this = (demux_avi_t *) this_gen;
+ buf_element_t *buf;
this->status = DEMUX_FINISHED;
@@ -854,6 +855,21 @@ static void demux_avi_stop (demux_plugin_t *this_gen) {
AVI_close (this->avi);
this->avi = NULL;
+
+
+ this->video_fifo->clear(this->video_fifo);
+ this->audio_fifo->clear(this->audio_fifo);
+
+ buf = this->video_fifo->buffer_pool_alloc (this->video_fifo);
+ buf->type = BUF_CONTROL_END;
+ this->video_fifo->put (this->video_fifo, buf);
+
+ if(this->audio_fifo) {
+ buf = this->audio_fifo->buffer_pool_alloc (this->audio_fifo);
+ buf->type = BUF_CONTROL_END;
+ this->audio_fifo->put (this->audio_fifo, buf);
+ }
+
}
static void demux_avi_close (demux_plugin_t *this_gen) {