diff options
author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-10-29 14:15:59 +0000 |
---|---|---|
committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-10-29 14:15:59 +0000 |
commit | d400e23e38daeed71e0cabcf065b55c1d15023d7 (patch) | |
tree | d7dd2193b73d6f8e5be2087dc6ff79c7f62f2b53 /apps/playback.c | |
parent | 75eff7af5e23bb86b376746c1216b553d1efbc35 (diff) |
Prefix the error constants with ERR_
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15359 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/playback.c b/apps/playback.c index 23e8da30e1..e42f9b172d 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -366,11 +366,11 @@ static void *bufgetcodec(struct track_info *track) void *ptr; ssize_t ret = bufgetdata(track->codec_hid, track->codecsize, &ptr); - if (ret == DATA_NOT_READY) { + if (ret == ERR_DATA_NOT_READY) { buf_request_buffer_handle(track->codec_hid); } - while (ret == DATA_NOT_READY) { + while (ret == ERR_DATA_NOT_READY) { sleep(1); ret = bufgetdata(track->codec_hid, track->codecsize, &ptr); } @@ -1516,13 +1516,13 @@ static size_t codec_filebuf_callback(void *ptr, size_t size) return 0; - if (copy_n == DATA_NOT_READY) + if (copy_n == ERR_DATA_NOT_READY) { buf_request_buffer_handle(CUR_TI->audio_hid); } /* Let the disk buffer catch fill until enough data is available */ - while (copy_n == DATA_NOT_READY) + while (copy_n == ERR_DATA_NOT_READY) { sleep(1); @@ -1561,13 +1561,13 @@ static void* codec_request_buffer_callback(size_t *realsize, size_t reqsize) return NULL; } - if (ret == DATA_NOT_READY) + if (ret == ERR_DATA_NOT_READY) { buf_request_buffer_handle(CUR_TI->audio_hid); } /* Let the disk buffer catch fill until enough data is available */ - while (ret == DATA_NOT_READY) + while (ret == ERR_DATA_NOT_READY) { sleep(1); |