Fixed return value

This commit is contained in:
Abramo Bagnara 2000-04-13 21:17:03 +00:00
parent 31c7d12284
commit 22b1b2a64d
3 changed files with 7 additions and 3 deletions

View file

@ -86,6 +86,8 @@ static ssize_t block_transfer(snd_pcm_plugin_t *plugin,
}
result = snd_pcm_readv(plugin->handle, vec, count);
}
if (result < 0)
return result;
return snd_pcm_plugin_dst_size_to_samples(plugin, result);
} else {
return -EINVAL;