diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-09-12 00:04:21 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-09-12 00:04:21 +0000 |
commit | 7f92542420ef6085b6f090954052266cc70af8a1 (patch) | |
tree | 86640b0497bf7f34c0c7df5b6c36bdf6ec78adea /src/pulsecore/sound-file.c | |
parent | 54506ab44a9ac61e79b3a5c632db56bde41beded (diff) |
consolidate close() calls to pa_close(), and make sure on every occasion that we handle failures of close() sensibly
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1811 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/sound-file.c')
-rw-r--r-- | src/pulsecore/sound-file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pulsecore/sound-file.c b/src/pulsecore/sound-file.c index 8727ba15..b1c509f2 100644 --- a/src/pulsecore/sound-file.c +++ b/src/pulsecore/sound-file.c @@ -36,6 +36,7 @@ #include <pulsecore/log.h> #include <pulsecore/macro.h> #include <pulsecore/core-error.h> +#include <pulsecore/core-util.h> #include "sound-file.h" #include "core-scache.h" @@ -77,7 +78,7 @@ int pa_sound_file_load( if (!(sf = sf_open_fd(fd, SFM_READ, &sfinfo, 1))) { pa_log("Failed to open file %s", fname); - close(fd); + pa_close(fd); goto finish; } |