--- bluez-utils/audio/pcm_bluetooth.c 2008/01/05 14:51:47 1.91 +++ bluez-utils/audio/pcm_bluetooth.c 2008/01/09 03:03:32 1.92 @@ -786,11 +786,11 @@ DBG("areas->step=%u areas->first=%u offset=%lu size=%lu io->nonblock=%u", areas->step, areas->first, offset, size, io->nonblock); + frame_size = areas->step / 8; + if (data->count > 0) goto proceed; - frame_size = areas->step / 8; - nrecv = recv(data->stream.fd, data->buffer, data->link_mtu, MSG_WAITALL | (io->nonblock ? MSG_DONTWAIT : 0));