diff options
author | Eric Wong <normalperson@yhbt.net> | 2005-07-03 12:15:45 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2005-07-03 12:15:45 +0000 |
commit | fb175591c3ed354296458bf00957a9662c442a00 (patch) | |
tree | f701e8578484ed45cdf5c467ef62b352ab6a2057 /src | |
parent | bf9d8a0bbec194bb4a6ac4932442e063c87586ab (diff) | |
download | mpd-fb175591c3ed354296458bf00957a9662c442a00.tar.gz mpd-fb175591c3ed354296458bf00957a9662c442a00.tar.xz mpd-fb175591c3ed354296458bf00957a9662c442a00.zip |
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
Diffstat (limited to '')
-rw-r--r-- | src/audioOutputs/audioOutput_oss.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |