Package list squeezelite / 0711a81
avoid holding lock when sleeping Adrian Smith 7 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
596596 // process frames
597597 frames_t wrote = _output_frames(avail);
598598
599 UNLOCK;
600
599601 // some output devices such as alsa null refuse any data, avoid spinning
600602 if (!wrote) {
601603 LOG_SDEBUG("wrote 0 - sleeping");
602604 usleep(10000);
603605 }
604
605 UNLOCK;
606606 }
607607
608608 return 0;