summaryrefslogtreecommitdiff
path: root/src/xine-engine/demux.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xine-engine/demux.c')
-rw-r--r--src/xine-engine/demux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xine-engine/demux.c b/src/xine-engine/demux.c
index e4bc9f4e7..5b7138cd1 100644
--- a/src/xine-engine/demux.c
+++ b/src/xine-engine/demux.c
@@ -175,7 +175,8 @@ static void *demux_loop (void *stream_gen) {
/* wait before sending end buffers: user might want to do a new seek */
while(stream->demux_thread_running &&
((!stream->video_fifo || stream->video_fifo->size(stream->video_fifo)) ||
- (!stream->audio_fifo || stream->audio_fifo->size(stream->audio_fifo))) &&
+ (stream->audio_out
+ && (!stream->audio_fifo || stream->audio_fifo->size(stream->audio_fifo)))) &&
status == DEMUX_FINISHED ){
pthread_mutex_unlock( &stream->demux_lock );
xine_usec_sleep(100000);