aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordvdli <dvdli@google.com>2020-10-28 16:12:19 +0800
committerdvdli <dvdli@google.com>2020-10-28 16:12:19 +0800
commit5688a7a7b125e9bd3e3f81f8a30f3425bf71d42d (patch)
tree9de109a7647d7b625aa68296891485fc13fafc50
parent9c9a44299900695a91aa50a2751f903144bd3a0f (diff)
parent2378be171c12271dd76baf099e1e050218a4170b (diff)
Merge remote-tracking branch 'origin' into android-dev
-rw-r--r--examples/pcm-writei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pcm-writei.c b/examples/pcm-writei.c
index c6ea1e2..19eafac 100644
--- a/examples/pcm-writei.c
+++ b/examples/pcm-writei.c
@@ -74,7 +74,7 @@ static int write_frames(const void * frames, size_t byte_count){
unsigned int frame_count = pcm_bytes_to_frames(pcm, byte_count);
int err = pcm_writei(pcm, frames, frame_count);
- if (err != 0) {
+ if (err < 0) {
printf("error: %s\n", pcm_get_error(pcm));
}