triple: fix narrowing warning in video_td, add FD_CLOEXEC

This commit is contained in:
Stefan Seyfried
2017-02-11 19:00:51 +01:00
parent aa683951fc
commit 0226277758
3 changed files with 8 additions and 5 deletions

View File

@@ -274,6 +274,7 @@ int cAudio::PrepareClipPlay(int ch, int srate, int bits, int little_endian)
/* not a real error */
return 0;
}
fcntl(P->mixer_fd, F_SETFD, FD_CLOEXEC);
if (ioctl(P->mixer_fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1) {
lt_info("%s: SOUND_MIXER_READ_DEVMASK %m\n", __func__);
devmask = 0;