Commit 2204eb63 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Use portable definitions of EWOULDBLOCK.

parent 802950d5
...@@ -89,12 +89,12 @@ int ms_async_reader_read(MSAsyncReader *obj, uint8_t *buf, size_t size){ ...@@ -89,12 +89,12 @@ int ms_async_reader_read(MSAsyncReader *obj, uint8_t *buf, size_t size){
ms_mutex_lock(&obj->mutex); ms_mutex_lock(&obj->mutex);
if (obj->moving){ if (obj->moving){
err = -EWOULDBLOCK; err = -BCTBX_EWOULDBLOCK;
goto end; goto end;
} }
avail = ms_bufferizer_get_avail(&obj->buf); avail = ms_bufferizer_get_avail(&obj->buf);
if (avail < size && obj->ntasks_pending){ if (avail < size && obj->ntasks_pending){
err = -EWOULDBLOCK; err = -BCTBX_EWOULDBLOCK;
goto end; goto end;
} }
/*eventually ask to fill the bufferizer*/ /*eventually ask to fill the bufferizer*/
......
...@@ -403,7 +403,7 @@ static void player_process(MSFilter *f){ ...@@ -403,7 +403,7 @@ static void player_process(MSFilter *f){
ms_filter_notify_no_arg(f,MS_FILE_PLAYER_EOF); ms_filter_notify_no_arg(f,MS_FILE_PLAYER_EOF);
} }
}else{ }else{
if (err != -EWOULDBLOCK) ms_warning("MSFilePlayer[%p]: fail to read %i bytes.",f, bytes); if (err != -BCTBX_EWOULDBLOCK) ms_warning("MSFilePlayer[%p]: fail to read %i bytes.",f, bytes);
else d->async_read_too_late++; else d->async_read_too_late++;
freemsg(om); freemsg(om);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment