diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-21 13:40:27 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-21 13:40:27 +0000 |
commit | ca4300477c8c1908803952fafedcba35dd2bae0a (patch) | |
tree | b4f17cef3c625060500fef8feb76d5d63ed33825 /audio | |
parent | 7090ecad23e84f232648368331cbf41e8d71b6c6 (diff) |
Fix pthread function error checking
Diffstat (limited to 'audio')
-rw-r--r-- | audio/pcm_bluetooth.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |