diff options
author | Brian Cameron <brian.cameron@sun.com> | 2009-05-10 01:03:05 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-05-10 01:03:05 +0200 |
commit | 33e3a5daf880db61b58013143acff29bfcf283d1 (patch) | |
tree | 00130bd3015db4ce882f3c6dc7fbaacb9ea200ac | |
parent | 84b4db13c33d62918461221f6f108355aea34565 (diff) | |
download | libcanberra-33e3a5daf880db61b58013143acff29bfcf283d1.tar.gz |
oss: initialize oss fd properly to avoid closing inappropriate file descriptors
-rw-r--r-- | src/oss.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -422,6 +422,7 @@ int driver_play(ca_context *c, uint32_t id, ca_proplist *proplist, ca_finish_cal out->callback = cb; out->userdata = userdata; out->pipe_fd[0] = out->pipe_fd[1] = -1; + out->pcm = -1; if (pipe(out->pipe_fd) < 0) { ret = CA_ERROR_SYSTEM; |