mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-17 08:56:45 -05:00
Fixed typo causing assertion failed on capture
This commit is contained in:
parent
8a50d1ed8f
commit
bc2703ebab
1 changed files with 2 additions and 2 deletions
|
|
@ -131,8 +131,8 @@ int snd_pcm_plug_alloc(snd_pcm_plug_t *plug, size_t frames)
|
||||||
} else {
|
} else {
|
||||||
snd_pcm_plugin_t *plugin = snd_pcm_plug_last(plug);
|
snd_pcm_plugin_t *plugin = snd_pcm_plug_last(plug);
|
||||||
while (plugin->prev) {
|
while (plugin->prev) {
|
||||||
if (plugin->dst_frames)
|
if (plugin->src_frames)
|
||||||
frames = plugin->dst_frames(plugin, frames);
|
frames = plugin->src_frames(plugin, frames);
|
||||||
assert(frames > 0);
|
assert(frames > 0);
|
||||||
plugin = plugin->prev;
|
plugin = plugin->prev;
|
||||||
err = snd_pcm_plugin_alloc(plugin, frames);
|
err = snd_pcm_plugin_alloc(plugin, frames);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue