From 91699d8ebd2bf2ec7f44622e7e090d720c20bcb3 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Fri, 17 Jan 2003 16:52:33 +0000 Subject: fix several segfaults with -A null CVS patchset: 3943 CVS date: 2003/01/17 16:52:33 --- src/demuxers/demux_voc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/demuxers/demux_voc.c') diff --git a/src/demuxers/demux_voc.c b/src/demuxers/demux_voc.c index a26aa8af4..47765dd80 100644 --- a/src/demuxers/demux_voc.c +++ b/src/demuxers/demux_voc.c @@ -23,7 +23,7 @@ * It will only play that block if it is PCM data. More variations will be * supported as they are encountered. * - * $Id: demux_voc.c,v 1.24 2003/01/10 21:11:11 miguelfreitas Exp $ + * $Id: demux_voc.c,v 1.25 2003/01/17 16:52:38 miguelfreitas Exp $ * */ @@ -179,6 +179,11 @@ static int demux_voc_send_chunk(demux_plugin_t *this_gen) { } while (remaining_sample_bytes) { + /* abort if no audio fifo */ + if(!this->audio_fifo) + this->status = DEMUX_FINISHED; + break; + buf = this->audio_fifo->buffer_pool_alloc (this->audio_fifo); buf->type = this->audio_type; buf->extra_info->input_pos = current_file_pos; -- cgit v1.2.3