mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-23 06:59:53 -05:00
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
This commit is contained in:
parent
54506ab44a
commit
7f92542420
18 changed files with 89 additions and 81 deletions
|
|
@ -40,6 +40,7 @@
|
|||
#include <pulsecore/sink-input.h>
|
||||
#include <pulsecore/log.h>
|
||||
#include <pulsecore/thread-mq.h>
|
||||
#include <pulsecore/core-util.h>
|
||||
|
||||
#include "sound-file-stream.h"
|
||||
|
||||
|
|
@ -271,7 +272,7 @@ int pa_play_file(
|
|||
|
||||
if (!(u->sndfile = sf_open_fd(fd, SFM_READ, &sfinfo, 1))) {
|
||||
pa_log("Failed to open file %s", fname);
|
||||
close(fd);
|
||||
pa_close(fd);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue