]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/oss_audio.c
iff decoder: reindent
[ffmpeg] / libavdevice / oss_audio.c
index 5c8b3b9727f49679af97470d5c9033f5447efc35..aa40034ea98d0cb01a25d7c7c4e00aa6cfa08288 100644 (file)
@@ -76,8 +76,11 @@ static int audio_open(AVFormatContext *s1, int is_output, const char *audio_devi
     }
 
     /* non blocking mode */
-    if (!is_output)
-        fcntl(audio_fd, F_SETFL, O_NONBLOCK);
+    if (!is_output) {
+        if (fcntl(audio_fd, F_SETFL, O_NONBLOCK) < 0) {
+            av_log(s1, AV_LOG_WARNING, "%s: Could not enable non block mode (%s)\n", audio_device, strerror(errno));
+        }
+    }
 
     s->frame_size = AUDIO_BLOCK_SIZE;