summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_mpeg.c
diff options
context:
space:
mode:
authorHeiko Schaefer <heikos@users.sourceforge.net>2001-06-11 03:14:29 +0000
committerHeiko Schaefer <heikos@users.sourceforge.net>2001-06-11 03:14:29 +0000
commitb1ca127fe13f65dea1eb64b20925336c0b7b8bf7 (patch)
tree959ed5dad0b6349302ac86a77dea593921850175 /src/demuxers/demux_mpeg.c
parent2dd8c54a0a2de3c7a142b826817f794773dcfa2c (diff)
downloadxine-lib-b1ca127fe13f65dea1eb64b20925336c0b7b8bf7.tar.gz
xine-lib-b1ca127fe13f65dea1eb64b20925336c0b7b8bf7.tar.bz2
bugfixes for playing without sound-driver
CVS patchset: 163 CVS date: 2001/06/11 03:14:29
Diffstat (limited to 'src/demuxers/demux_mpeg.c')
-rw-r--r--src/demuxers/demux_mpeg.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/demuxers/demux_mpeg.c b/src/demuxers/demux_mpeg.c
index a933fd2c4..d6bafa761 100644
--- a/src/demuxers/demux_mpeg.c
+++ b/src/demuxers/demux_mpeg.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.c,v 1.15 2001/06/09 22:05:30 guenter Exp $
+ * $Id: demux_mpeg.c,v 1.16 2001/06/11 03:14:29 heikos Exp $
*
* demultiplexer for mpeg 1/2 program streams
* reads streams of variable blocksizes
@@ -368,8 +368,12 @@ static void parse_mpeg1_packet (demux_mpeg_t *this, int nID)
xprintf (VERBOSE|DEMUX|AUDIO, ", audio #%d", track);
- if(this->audio_fifo)
+ if(this->audio_fifo) {
buf = this->input->read_block (this->input, this->audio_fifo, nLen);
+ } else {
+ buf = this->input->read (this->input, this->dummy_space, nLen);
+ return;
+ }
if (buf == NULL) {
this->status = DEMUX_FINISHED;