diff options
author | Simon Wilson <ksattic@gmail.com> | 2015-09-15 11:17:53 -0700 |
---|---|---|
committer | Simon Wilson <ksattic@gmail.com> | 2015-09-15 11:17:53 -0700 |
commit | 1c30d6eb6ac4ce3870298c36d44202e13917f588 (patch) | |
tree | c8c8e33188a768c0618992b036cccf9f5fd47dc1 | |
parent | ab1cecf5d3d3f75e4826c6028774a2a415fc6653 (diff) | |
parent | b0fc3e9fa2531d42edf112823356ac58262d1cd0 (diff) |
Merge pull request #37 from StevenNAN/patch-1
avail issue
-rw-r--r-- | pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |