summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2012-12-14 14:49:56 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2012-12-14 14:49:56 +0800
commited4e499dca1e636df9b3815e6478730189d31a4c (patch)
tree2057eb0acea1ab3e6bc5c4b7089ea41c1bde3cab
parentf5e1aa807886d9cf1d8aaa5f42f005cd2607c2da (diff)
Fix stupid error while checking for invalid sample rate
-rw-r--r--src/device_extern.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device_extern.cpp b/src/device_extern.cpp
index 48c59d0..f0183b2 100644
--- a/src/device_extern.cpp
+++ b/src/device_extern.cpp
@@ -88,7 +88,7 @@ namespace audiere {
break;
}
}
- if (rate > 0)
+ if (rate <= 0)
{
ADR_LOG("Unable to open audio device\n");
module.uninit();