summaryrefslogtreecommitdiffstats
path: root/audio/pcm_bluetooth.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-21 13:40:27 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-21 13:40:27 +0000
commitca4300477c8c1908803952fafedcba35dd2bae0a (patch)
treeb4f17cef3c625060500fef8feb76d5d63ed33825 /audio/pcm_bluetooth.c
parent7090ecad23e84f232648368331cbf41e8d71b6c6 (diff)
Fix pthread function error checking
Diffstat (limited to 'audio/pcm_bluetooth.c')
-rw-r--r--audio/pcm_bluetooth.c4
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;