oss: warn when non block mode cannot be enabled.
Fixes CID732183 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a0348d0966
commit
1ba0d9b5d1
@ -76,8 +76,11 @@ static int audio_open(AVFormatContext *s1, int is_output, const char *audio_devi
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* non blocking mode */
|
/* non blocking mode */
|
||||||
if (!is_output)
|
if (!is_output) {
|
||||||
fcntl(audio_fd, F_SETFL, O_NONBLOCK);
|
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;
|
s->frame_size = AUDIO_BLOCK_SIZE;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user