diff options
author | Chris Rankin <rankincj@yahoo.com> | 2011-10-03 01:35:02 +0100 |
---|---|---|
committer | Chris Rankin <rankincj@yahoo.com> | 2011-10-03 01:35:02 +0100 |
commit | bd482ac652db2a937381c475718139f1668de266 (patch) | |
tree | 7c7881fefa8277205124efdf1e5c6286ce7c4381 /src/dxr3/dxr3_decode_video.c | |
parent | 154d771692a1ca9b9af5eb0acc12885ca852307a (diff) | |
download | xine-lib-bd482ac652db2a937381c475718139f1668de266.tar.gz xine-lib-bd482ac652db2a937381c475718139f1668de266.tar.bz2 |
Add CLOEXEC flag to DXR3 plugin's descriptors.
Diffstat (limited to 'src/dxr3/dxr3_decode_video.c')
-rw-r--r-- | src/dxr3/dxr3_decode_video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dxr3/dxr3_decode_video.c b/src/dxr3/dxr3_decode_video.c index 252415850..a5af67b36 100644 --- a/src/dxr3/dxr3_decode_video.c +++ b/src/dxr3/dxr3_decode_video.c @@ -227,7 +227,7 @@ static video_decoder_t *dxr3_open_plugin(video_decoder_class_t *class_gen, xine_ /* open later, because dxr3_video_out might have it open until we request a frame */ this->fd_video = -1; - if ((this->fd_control = open(tmpstr, O_WRONLY)) < 0) { + if ((this->fd_control = open_cloexec(tmpstr, O_WRONLY)) < 0) { xprintf(this->stream->xine, XINE_VERBOSITY_LOG, _("dxr3_decode_video: Failed to open control device %s (%s)\n"), tmpstr, strerror(errno)); free(this); @@ -508,7 +508,7 @@ static void dxr3_decode_data(video_decoder_t *this_gen, buf_element_t *buf) /* open the device for the decoder */ snprintf (tmpstr, sizeof(tmpstr), "/dev/em8300_mv-%d", this->devnum); - if ((this->fd_video = open(tmpstr, O_WRONLY)) < 0) { + if ((this->fd_video = open_cloexec(tmpstr, O_WRONLY)) < 0) { xprintf(this->stream->xine, XINE_VERBOSITY_LOG, _("dxr3_decode_video: Failed to open video device %s (%s)\n"), tmpstr, strerror(errno)); return; |