diff options
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 3c1dd37d3f..2fae4d34ea 100644 --- a/apps/playback.c +++ b/apps/playback.c | |||
@@ -366,11 +366,11 @@ static void *bufgetcodec(struct track_info *track) | |||
366 | void *ptr; | 366 | void *ptr; |
367 | ssize_t ret = bufgetdata(track->codec_hid, track->codecsize, &ptr); | 367 | ssize_t ret = bufgetdata(track->codec_hid, track->codecsize, &ptr); |
368 | 368 | ||
369 | if (ret == -2) { | 369 | if (ret == DATA_NOT_READY) { |
370 | buf_request_buffer_handle(track->codec_hid); | 370 | buf_request_buffer_handle(track->codec_hid); |
371 | } | 371 | } |
372 | 372 | ||
373 | while (ret == -2) { | 373 | while (ret == DATA_NOT_READY) { |
374 | sleep(1); | 374 | sleep(1); |
375 | ret = bufgetdata(track->codec_hid, track->codecsize, &ptr); | 375 | ret = bufgetdata(track->codec_hid, track->codecsize, &ptr); |
376 | } | 376 | } |
@@ -1516,13 +1516,13 @@ static size_t codec_filebuf_callback(void *ptr, size_t size) | |||
1516 | return 0; | 1516 | return 0; |
1517 | 1517 | ||
1518 | 1518 | ||
1519 | if (copy_n == -2) | 1519 | if (copy_n == DATA_NOT_READY) |
1520 | { | 1520 | { |
1521 | buf_request_buffer_handle(CUR_TI->audio_hid); | 1521 | buf_request_buffer_handle(CUR_TI->audio_hid); |
1522 | } | 1522 | } |
1523 | 1523 | ||
1524 | /* Let the disk buffer catch fill until enough data is available */ | 1524 | /* Let the disk buffer catch fill until enough data is available */ |
1525 | while (copy_n == -2) | 1525 | while (copy_n == DATA_NOT_READY) |
1526 | { | 1526 | { |
1527 | sleep(1); | 1527 | sleep(1); |
1528 | 1528 | ||
@@ -1561,13 +1561,13 @@ static void* codec_request_buffer_callback(size_t *realsize, size_t reqsize) | |||
1561 | return NULL; | 1561 | return NULL; |
1562 | } | 1562 | } |
1563 | 1563 | ||
1564 | if (ret == -2) | 1564 | if (ret == DATA_NOT_READY) |
1565 | { | 1565 | { |
1566 | buf_request_buffer_handle(CUR_TI->audio_hid); | 1566 | buf_request_buffer_handle(CUR_TI->audio_hid); |
1567 | } | 1567 | } |
1568 | 1568 | ||
1569 | /* Let the disk buffer catch fill until enough data is available */ | 1569 | /* Let the disk buffer catch fill until enough data is available */ |
1570 | while (ret == -2) | 1570 | while (ret == DATA_NOT_READY) |
1571 | { | 1571 | { |
1572 | sleep(1); | 1572 | sleep(1); |
1573 | 1573 | ||