From: Abramo Bagnara Date: Thu, 6 Jul 2000 12:41:35 +0000 (+0000) Subject: Fixed typo causing assertion failed on capture X-Git-Tag: v1.0.3~1209 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=bc2703ebab8ff0094e8bcb0bf439ff2a3fea7813;p=alsa-lib.git Fixed typo causing assertion failed on capture --- 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);