From 73a9e4c943c6b0d3d8ce031f6c24c763b8b05855 Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Sun, 16 Jul 2000 11:29:33 +0000 Subject: [PATCH] Fixed ignoring error --- src/pcm/plugin/mmap.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pcm/plugin/mmap.c b/src/pcm/plugin/mmap.c index 7b75aa8c..177e04fb 100644 --- a/src/pcm/plugin/mmap.c +++ b/src/pcm/plugin/mmap.c @@ -188,7 +188,9 @@ static ssize_t mmap_playback_transfer(snd_pcm_plugin_t *plugin, } #endif - snd_pcm_frame_data(stream, frames); + err = snd_pcm_mmap_frame_data(stream, frames); + if (err < 0) + return err; if (snd_pcm_mmap_state(stream) == SND_PCM_STATE_PREPARED && (setup->start_mode == SND_PCM_START_DATA || (setup->start_mode == SND_PCM_START_FULL && @@ -207,13 +209,16 @@ static ssize_t mmap_capture_transfer(snd_pcm_plugin_t *plugin, { mmap_t *data; snd_pcm_t *stream; + int err; assert(plugin && plugin->next); data = (mmap_t *)plugin->extra_data; stream = plugin->plug->slave; /* FIXME: not here the increment */ - snd_pcm_frame_data(stream, frames); + err = snd_pcm_mmap_frame_data(stream, frames); + if (err < 0) + return err; return frames; } -- 2.47.1