From ca4300477c8c1908803952fafedcba35dd2bae0a Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 21 Aug 2007 13:40:27 +0000 Subject: Fix pthread function error checking --- audio/pcm_bluetooth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'audio/pcm_bluetooth.c') diff --git a/audio/pcm_bluetooth.c b/audio/pcm_bluetooth.c index 31ad2e18..b971d0ea 100644 --- a/audio/pcm_bluetooth.c +++ b/audio/pcm_bluetooth.c @@ -210,11 +210,11 @@ static int bluetooth_a2dp_playback_stop(snd_pcm_ioplug_t *io) return 0; err = pthread_cancel(a2dp_data->hw_thread); - if (err != 0) + if (err > 0) return -err; err = pthread_join(a2dp_data->hw_thread, 0); - if (err != 0) + if (err > 0) return -err; a2dp_data->hw_thread = 0; -- cgit