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/audio_out/audio_sun_out.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/audio_out/audio_sun_out.c')
-rw-r--r-- | src/audio_out/audio_sun_out.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio_out/audio_sun_out.c b/src/audio_out/audio_sun_out.c index 029545544..34d2f14ec 100644 --- a/src/audio_out/audio_sun_out.c +++ b/src/audio_out/audio_sun_out.c @@ -160,7 +160,7 @@ static int realtime_samplecounter_available(xine_t *xine, char *dev) if (silence == NULL) goto error; - if ((fd = open_cloexec(dev, O_WRONLY|O_NONBLOCK)) < 0) + if ((fd = xine_open_cloexec(dev, O_WRONLY|O_NONBLOCK)) < 0) goto error; /* We wanted non blocking open but now put it back to normal */ @@ -449,7 +449,7 @@ static int ao_sun_open(ao_driver_t *this_gen, * open audio device */ - this->audio_fd = open_cloexec(this->audio_dev, O_WRONLY|O_NONBLOCK); + this->audio_fd = xine_open_cloexec(this->audio_dev, O_WRONLY|O_NONBLOCK); if(this->audio_fd < 0) { xprintf(this->xine, XINE_VERBOSITY_LOG, _("audio_sun_out: opening audio device %s failed: %s\n"), this->audio_dev, strerror(errno)); @@ -940,7 +940,7 @@ static ao_driver_t *ao_sun_open_plugin (audio_driver_class_t *class_gen, const v * open the device */ this->audio_dev = devname; - this->audio_fd = open_cloexec(devname, O_WRONLY|O_NONBLOCK); + this->audio_fd = xine_open_cloexec(devname, O_WRONLY|O_NONBLOCK); if(this->audio_fd < 0) { |