bluez: Fix return value check for bt_audio_service_open()

Only negative values (namely -1) are errors for this function.
This commit is contained in:
Anderson Lizardo 2011-11-16 09:20:04 -04:00 committed by Tim-Philipp Müller
parent 86c2797eef
commit 83b0583a7a

View file

@ -1440,7 +1440,7 @@ gst_avdtp_sink_start (GstBaseSink * basesink)
self->watch_id = 0;
sk = bt_audio_service_open ();
if (sk <= 0) {
if (sk < 0) {
err = -errno;
GST_ERROR_OBJECT (self, "Cannot open connection to bt "
"audio service: %s %d", strerror (-err), -err);