From fb175591c3ed354296458bf00957a9662c442a00 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 3 Jul 2005 12:15:45 +0000 Subject: don't check errno unless we have an error (ret<0) from write() git-svn-id: https://svn.musicpd.org/mpd/trunk@3382 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/audioOutputs/audioOutput_oss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audioOutputs/audioOutput_oss.c b/src/audioOutputs/audioOutput_oss.c index 8681238a2..9eea9c788 100644 --- a/src/audioOutputs/audioOutput_oss.c +++ b/src/audioOutputs/audioOutput_oss.c @@ -524,8 +524,8 @@ static int oss_playAudio(AudioOutput * audioOutput, char * playChunk, while (size > 0) { ret = write(od->fd, playChunk, size); - if(errno == EINTR) continue; if(ret<0) { + if(errno == EINTR) continue; ERROR("closing oss device \"%s\" due to write error: " "%s\n", od->device, strerror(errno)); oss_closeDevice(audioOutput); -- cgit v1.2.3