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_spu.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_spu.c')
-rw-r--r-- | src/dxr3/dxr3_decode_spu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dxr3/dxr3_decode_spu.c b/src/dxr3/dxr3_decode_spu.c index ca2df4afd..82dfd2f91 100644 --- a/src/dxr3/dxr3_decode_spu.c +++ b/src/dxr3/dxr3_decode_spu.c @@ -236,7 +236,7 @@ static spu_decoder_t *dxr3_spudec_open_plugin(spu_decoder_class_t *class_gen, xi else { /* open dxr3 spu device */ snprintf(tmpstr, sizeof(tmpstr), "/dev/em8300_sp-%d", this->devnum); - if ((this->fd_spu = open(tmpstr, O_WRONLY)) < 0) { + if ((this->fd_spu = open_cloexec(tmpstr, O_WRONLY)) < 0) { xprintf(this->stream->xine, XINE_VERBOSITY_LOG, _("dxr3_decode_spu: Failed to open spu device %s (%s)\n"), tmpstr, strerror(errno)); pthread_mutex_unlock(&this->dxr3_vo->spu_device_lock); |