Message ID | 1402642727.109608901@f39.i.mail.ru (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c index 7e46014..5bb7582 100644 --- a/src/pcm/pcm.c +++ b/src/pcm/pcm.c @@ -6816,7 +6816,7 @@ snd_pcm_sframes_t snd_pcm_write_areas(snd_pcm_t *pcm, const snd_pcm_channel_area if (! frames) break; err = func(pcm, areas, offset, frames); - if (err < 0) + if (err <= 0) break; frames = err; if (state == SND_PCM_STATE_PREPARED) {