changeset 2041:ac3207cb728a

Use g_usleep()
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 13 Oct 2007 22:41:42 +0300
parents 997c71881e5b
children 1e65d53ec22b
files src/cdaudio-ng/cdaudio-ng.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cdaudio-ng/cdaudio-ng.c	Sat Oct 13 22:41:28 2007 +0300
+++ b/src/cdaudio-ng/cdaudio-ng.c	Sat Oct 13 22:41:42 2007 +0300
@@ -900,7 +900,7 @@
 			gint bytecount = CDIO_CD_FRAMESIZE_RAW <= remainingbytes ? CDIO_CD_FRAMESIZE_RAW : remainingbytes;
 				/* wait until the output buffer has enough room */
 			while (pdae_params->pplayback->playing && pdae_params->pplayback->output->buffer_free() < bytecount && pdae_params->seektime == -1)
-				usleep(1000);
+				g_usleep(1000);
 				/* play the sound :) */
 			if (pdae_params->pplayback->playing && pdae_params->seektime == -1)
 				pdae_params->pplayback->pass_audio(pdae_params->pplayback, FMT_S16_LE, 2,