diff options
| author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-17 16:52:33 +0000 |
|---|---|---|
| committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-01-17 16:52:33 +0000 |
| commit | 91699d8ebd2bf2ec7f44622e7e090d720c20bcb3 (patch) | |
| tree | 744be2c26135dc07f6ce8d8f5da7ce2ba6f66334 /src/demuxers/demux_realaudio.c | |
| parent | 61bc58e9578456dcb9f3af57d3700d58ad33faf1 (diff) | |
| download | xine-lib-91699d8ebd2bf2ec7f44622e7e090d720c20bcb3.tar.gz xine-lib-91699d8ebd2bf2ec7f44622e7e090d720c20bcb3.tar.bz2 | |
fix several segfaults with -A null
CVS patchset: 3943
CVS date: 2003/01/17 16:52:33
Diffstat (limited to 'src/demuxers/demux_realaudio.c')
| -rw-r--r-- | src/demuxers/demux_realaudio.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/demuxers/demux_realaudio.c b/src/demuxers/demux_realaudio.c index 8e54928bb..10b3fc022 100644 --- a/src/demuxers/demux_realaudio.c +++ b/src/demuxers/demux_realaudio.c @@ -19,7 +19,7 @@ * * RealAudio File Demuxer by Mike Melanson (melanson@pcisys.net) * - * $Id: demux_realaudio.c,v 1.13 2003/01/17 16:25:49 miguelfreitas Exp $ + * $Id: demux_realaudio.c,v 1.14 2003/01/17 16:52:38 miguelfreitas Exp $ * */ @@ -144,6 +144,10 @@ static int demux_ra_send_chunk(demux_plugin_t *this_gen) { } while (remaining_sample_bytes) { + 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; |
