bails out if cdparanoia can't read cd (avoid lockup)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20201 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ben 2006-10-13 19:07:11 +00:00
parent 3ec87e80d9
commit fcee7ea18f
1 changed files with 2 additions and 0 deletions

View File

@ -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++)