diff --git a/libarmbox/audio.cpp b/libarmbox/audio.cpp index dc4238e..36498e4 100644 --- a/libarmbox/audio.cpp +++ b/libarmbox/audio.cpp @@ -49,7 +49,7 @@ void cAudio::openDevice(void) if (fd < 0) { - if ((fd = open(AUDIO_DEVICE, O_RDWR | O_NONBLOCK)) < 0) + if ((fd = open(AUDIO_DEVICE, O_RDWR)) < 0) lt_info("openDevice: open failed (%m)\n"); fcntl(fd, F_SETFD, FD_CLOEXEC); do_mute(true, false); diff --git a/libarmbox/video.cpp b/libarmbox/video.cpp index 0afd139..61c7f6f 100644 --- a/libarmbox/video.cpp +++ b/libarmbox/video.cpp @@ -178,7 +178,7 @@ void cVideo::openDevice(void) if (fd != -1) /* already open */ return; retry: - if ((fd = open(VDEV[devnum], O_RDWR|O_CLOEXEC|O_NONBLOCK)) < 0) + if ((fd = open(VDEV[devnum], O_RDWR|O_CLOEXEC)) < 0) { if (errno == EBUSY) {