summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-09-12 23:14:39 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-09-12 23:14:39 +0000
commitbc0055f3b66431272da16c3719f56c81f9ac2339 (patch)
tree0f3a0313b2376f9bfde8b2b40f3d0f0604a034ee /src
parent7d6fb6c905dbd842eead370f2412a55eda31cecb (diff)
downloadxine-lib-bc0055f3b66431272da16c3719f56c81f9ac2339.tar.gz
xine-lib-bc0055f3b66431272da16c3719f56c81f9ac2339.tar.bz2
small patch for null audio output
CVS patchset: 628 CVS date: 2001/09/12 23:14:39
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_mpeg_block.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/demuxers/demux_mpeg_block.c b/src/demuxers/demux_mpeg_block.c
index b1085c5be..8c17f6783 100644
--- a/src/demuxers/demux_mpeg_block.c
+++ b/src/demuxers/demux_mpeg_block.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_mpeg_block.c,v 1.43 2001/09/12 22:18:47 guenter Exp $
+ * $Id: demux_mpeg_block.c,v 1.44 2001/09/12 23:14:39 guenter Exp $
*
* demultiplexer for mpeg 1/2 program streams
*
@@ -131,9 +131,11 @@ static void demux_mpeg_block_parse_pack (demux_mpeg_block_t *this, int preview_m
/* duplicate goes to audio fifo */
- cbuf = this->audio_fifo->buffer_pool_alloc (this->audio_fifo);
- cbuf->type = buf->type;
- this->audio_fifo->put (this->audio_fifo, cbuf);
+ if (this->audio_fifo) {
+ cbuf = this->audio_fifo->buffer_pool_alloc (this->audio_fifo);
+ cbuf->type = buf->type;
+ this->audio_fifo->put (this->audio_fifo, cbuf);
+ }
return;
}