From bc2703ebab8ff0094e8bcb0bf439ff2a3fea7813 Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Thu, 6 Jul 2000 12:41:35 +0000 Subject: [PATCH] Fixed typo causing assertion failed on capture --- src/pcm/pcm_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pcm/pcm_common.c b/src/pcm/pcm_common.c index 580d5d1c..13f43e98 100644 --- a/src/pcm/pcm_common.c +++ b/src/pcm/pcm_common.c @@ -131,8 +131,8 @@ int snd_pcm_plug_alloc(snd_pcm_plug_t *plug, size_t frames) } else { snd_pcm_plugin_t *plugin = snd_pcm_plug_last(plug); while (plugin->prev) { - if (plugin->dst_frames) - frames = plugin->dst_frames(plugin, frames); + if (plugin->src_frames) + frames = plugin->src_frames(plugin, frames); assert(frames > 0); plugin = plugin->prev; err = snd_pcm_plugin_alloc(plugin, frames); -- 2.47.1