diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-01-12 16:08:14 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-01-12 16:08:14 +0000 |
commit | fc93e4b3a722833ca6c1ad8a3c9af0b95b954000 (patch) | |
tree | a7bffcad8937b97b6734d1a9b2973898ae782503 | |
parent | f61be8b654d33f3ab1b693c7e3a5d790617fbf6e (diff) |
Used 0 as an invalid fd. Changed to -1.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@452 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r-- | polyp/module-oss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polyp/module-oss.c b/polyp/module-oss.c index 7c331893..d060b489 100644 --- a/polyp/module-oss.c +++ b/polyp/module-oss.c @@ -347,7 +347,7 @@ int pa__init(pa_core *c, pa_module*m) { assert(u->source || u->sink); - u->io = pa_iochannel_new(c->mainloop, u->source ? fd : -1, u->sink ? fd : 0); + u->io = pa_iochannel_new(c->mainloop, u->source ? fd : -1, u->sink ? fd : -1); assert(u->io); pa_iochannel_set_callback(u->io, io_callback, u); u->fd = fd; |