From 33e3a5daf880db61b58013143acff29bfcf283d1 Mon Sep 17 00:00:00 2001 From: Brian Cameron Date: Sun, 10 May 2009 01:03:05 +0200 Subject: oss: initialize oss fd properly to avoid closing inappropriate file descriptors --- src/oss.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/oss.c b/src/oss.c index 9683ceb..866c863 100644 --- a/src/oss.c +++ b/src/oss.c @@ -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; -- cgit