diff options
author | Chris Rankin <rankincj@yahoo.com> | 2011-10-03 12:38:45 +0100 |
---|---|---|
committer | Chris Rankin <rankincj@yahoo.com> | 2011-10-03 12:38:45 +0100 |
commit | a39a950269d165f18448cc7d6da691bf14b9e03b (patch) | |
tree | 2ff0626b06e3e87cb9f3d7678af4859b5d65b594 /src/dxr3/dxr3_decode_video.c | |
parent | cba782a23ee5c9c668e02f9c6d95acba70464d18 (diff) | |
download | xine-lib-a39a950269d165f18448cc7d6da691bf14b9e03b.tar.gz xine-lib-a39a950269d165f18448cc7d6da691bf14b9e03b.tar.bz2 |
Prefix open_cloexec() and create_cloexec() with xine_, and add new xine_socket_cloexec() function.
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 a5af67b36..ec28b4648 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_cloexec(tmpstr, O_WRONLY)) < 0) { + if ((this->fd_control = xine_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_cloexec(tmpstr, O_WRONLY)) < 0) { + if ((this->fd_video = xine_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; |