From: Matthias K. <kr...@kd...> - 2007-12-03 23:44:00
|
# HG changeset patch # User Matthias Kretz <kr...@kd...> # Date 1196725407 -3600 # Node ID aba4d90445d821d9a32ee2fe8b1300d08999ab36 # Parent 0d4f13cc7d626c412ea9eff7d65f37bab8d2fb72 fifo_peek_int can return NULL (when non-blocking). make fifo_remove_int handle that case diff -r 0d4f13cc7d62 -r aba4d90445d8 src/xine-engine/audio_out.c --- a/src/xine-engine/audio_out.c Mon Dec 03 16:47:53 2007 +0100 +++ b/src/xine-engine/audio_out.c Tue Dec 04 00:43:27 2007 +0100 @@ -358,6 +358,8 @@ static audio_buffer_t *fifo_peek_int (au static audio_buffer_t *fifo_remove_int (audio_fifo_t *fifo, int blocking) { audio_buffer_t *buf = fifo_peek_int(fifo, blocking); + if (!buf) + return NULL; fifo->first = buf->next; |