aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Wilson <ksattic@gmail.com>2015-09-15 11:17:53 -0700
committerSimon Wilson <ksattic@gmail.com>2015-09-15 11:17:53 -0700
commit1c30d6eb6ac4ce3870298c36d44202e13917f588 (patch)
treec8c8e33188a768c0618992b036cccf9f5fd47dc1
parentab1cecf5d3d3f75e4826c6028774a2a415fc6653 (diff)
parentb0fc3e9fa2531d42edf112823356ac58262d1cd0 (diff)
Merge pull request #37 from StevenNAN/patch-1
avail issue
-rw-r--r--pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcm.c b/pcm.c
index 1a5d84b..a260bfe 100644
--- a/pcm.c
+++ b/pcm.c
@@ -827,7 +827,7 @@ static inline int pcm_mmap_playback_avail(struct pcm *pcm)
if (avail < 0)
avail += pcm->boundary;
- else if (avail > (int)pcm->boundary)
+ else if (avail >= (int)pcm->boundary)
avail -= pcm->boundary;
return avail;