mirror of
https://github.com/mpv-player/mpv
synced 2025-04-04 15:34:31 +00:00
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:
parent
3ec87e80d9
commit
fcee7ea18f
@ -289,6 +289,8 @@ static int fill_buffer(stream_t* s, char* buffer, int max_len) {
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
buf = paranoia_read(p->cdp,cdparanoia_callback);
|
buf = paranoia_read(p->cdp,cdparanoia_callback);
|
||||||
|
if (!buf)
|
||||||
|
return 0;
|
||||||
|
|
||||||
#ifdef WORDS_BIGENDIAN
|
#ifdef WORDS_BIGENDIAN
|
||||||
for(i=0;i<CD_FRAMESIZE_RAW/2;i++)
|
for(i=0;i<CD_FRAMESIZE_RAW/2;i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user