diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-07-03 00:19:17 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-07-03 00:19:17 +0000 |
commit | 741aa44ffc8afd63cd29e5ae46f778dc68340df8 (patch) | |
tree | 2838bb11c8db75119cc3224ee7c93fb195e468d5 /src/iochannel.c | |
parent | 13b35a2489e7e1d6341effe6e25b8cb8a0a94a02 (diff) |
add resampling
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@45 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/iochannel.c')
-rw-r--r-- | src/iochannel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/iochannel.c b/src/iochannel.c index 25d6b05e..a133fdef 100644 --- a/src/iochannel.c +++ b/src/iochannel.c @@ -15,7 +15,7 @@ struct iochannel { int readable; int writable; - + int no_close; void* input_source, *output_source; @@ -147,8 +147,8 @@ ssize_t iochannel_write(struct iochannel*io, const void*data, size_t l) { ssize_t iochannel_read(struct iochannel*io, void*data, size_t l) { ssize_t r; - assert(io && data && l && io->ifd >= 0); - + assert(io && data && io->ifd >= 0); + if ((r = read(io->ifd, data, l)) >= 0) { io->readable = 0; enable_mainloop_sources(io); |