mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-11 13:30:05 -05:00
pcm: rate - correct the previous fix for snd_pcm_rate_may_wait_for_avail_min()
The previous fix inaa4f56c3was not correct. The root of the cause is implementation in snd_pcm_may_wait_for_avail_min() inline function where the improper pcm argument is passed to the fast_ops function. Fixes:aa4f56c3("pcm: rate - fix the crash in snd_pcm_rate_may_wait_for_avail_min()") Fixes:d9dbb57b("pcm: rate - rewrite the may_wait_for_avail_min callback for the rate plugin") Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
aa4f56c3c9
commit
39060852d8
2 changed files with 8 additions and 4 deletions
|
|
@ -1144,7 +1144,7 @@ static inline int snd_pcm_may_wait_for_avail_min(snd_pcm_t *pcm, snd_pcm_uframes
|
|||
if (avail >= pcm->avail_min)
|
||||
return 0;
|
||||
if (pcm->fast_ops->may_wait_for_avail_min)
|
||||
return pcm->fast_ops->may_wait_for_avail_min(pcm, avail);
|
||||
return pcm->fast_ops->may_wait_for_avail_min(pcm->fast_op_arg, avail);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue