Fixed capture for plugins

This commit is contained in:
Jaroslav Kysela 2002-04-16 19:24:58 +00:00
parent 2c03ec1530
commit 6746dabeb1

View 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)