summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-07-03 00:32:31 +0000
committerLennart Poettering <lennart@poettering.net>2004-07-03 00:32:31 +0000
commita8a5ab1c79c0b6567ecc98343ff1ae944f2285b9 (patch)
tree315c648a023a935bca8f33b709738697dfaa3ae7 /src
parent3ac2437abd693839a7abb78f1e16f82f91712242 (diff)
fix minor typo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@48 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
-rw-r--r--src/module-oss-mmap.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 67109682..d10ce0d5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -38,7 +38,7 @@ int main(int argc, char *argv[]) {
c = core_new(pa_mainloop_get_api(mainloop));
assert(c);
- module_load(c, "module-oss-mmap", "/dev/dsp");
+ module_load(c, "module-oss-mmap", "/dev/dsp1");
/* module_load(c, "module-pipe-sink", NULL);*/
module_load(c, "module-simple-protocol-tcp", NULL);
/* module_load(c, "module-simple-protocol-unix", NULL);
diff --git a/src/module-oss-mmap.c b/src/module-oss-mmap.c
index 3997c490..3f69e05b 100644
--- a/src/module-oss-mmap.c
+++ b/src/module-oss-mmap.c
@@ -273,7 +273,7 @@ int module_init(struct core *c, struct module*m) {
}
}
- if (m != O_RDONLY) {
+ if (mode != O_RDONLY) {
if (ioctl(u->fd, SNDCTL_DSP_GETOSPACE, &info) < 0) {
fprintf(stderr, "SNDCTL_DSP_GETOSPACE: %s\n", strerror(errno));
goto fail;