aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutputs
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2005-07-03 12:15:45 +0000
committerEric Wong <normalperson@yhbt.net>2005-07-03 12:15:45 +0000
commitfb175591c3ed354296458bf00957a9662c442a00 (patch)
treef701e8578484ed45cdf5c467ef62b352ab6a2057 /src/audioOutputs
parentbf9d8a0bbec194bb4a6ac4932442e063c87586ab (diff)
downloadmpd-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 'src/audioOutputs')
-rw-r--r--src/audioOutputs/audioOutput_oss.c2
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);