diff options
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream_cdda.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/stream_cdda.c b/stream/stream_cdda.c index 42d2713b51..081667c819 100644 --- a/stream/stream_cdda.c +++ b/stream/stream_cdda.c @@ -289,6 +289,8 @@ static int fill_buffer(stream_t* s, char* buffer, int max_len) { int i; buf = paranoia_read(p->cdp,cdparanoia_callback); + if (!buf) + return 0; #ifdef WORDS_BIGENDIAN for(i=0;i<CD_FRAMESIZE_RAW/2;i++) |