]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fixed capture for plugins
authorJaroslav Kysela <perex@perex.cz>
Tue, 16 Apr 2002 19:24:58 +0000 (19:24 +0000)
committerJaroslav Kysela <perex@perex.cz>
Tue, 16 Apr 2002 19:24:58 +0000 (19:24 +0000)
src/pcm/pcm_plugin.c

index 87fa4decb4ba194f5465661544b5da5bf2208a06..bc52233edeeccd6895c21ac7988d64484d05c754 100644 (file)
@@ -442,7 +442,7 @@ snd_pcm_sframes_t snd_pcm_plugin_mmap_commit(snd_pcm_t *pcm,
                snd_atomic_write_begin(&plugin->watom);
                snd_pcm_mmap_appl_forward(pcm, size);
                snd_atomic_write_end(&plugin->watom);
-               return 0;
+               return size;
        }
        slave_size = snd_pcm_avail_update(slave);
        if (slave_size < 0)