mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
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:
parent
86c2797eef
commit
83b0583a7a
1 changed files with 1 additions and 1 deletions
|
@ -1440,7 +1440,7 @@ gst_avdtp_sink_start (GstBaseSink * basesink)
|
||||||
self->watch_id = 0;
|
self->watch_id = 0;
|
||||||
|
|
||||||
sk = bt_audio_service_open ();
|
sk = bt_audio_service_open ();
|
||||||
if (sk <= 0) {
|
if (sk < 0) {
|
||||||
err = -errno;
|
err = -errno;
|
||||||
GST_ERROR_OBJECT (self, "Cannot open connection to bt "
|
GST_ERROR_OBJECT (self, "Cannot open connection to bt "
|
||||||
"audio service: %s %d", strerror (-err), -err);
|
"audio service: %s %d", strerror (-err), -err);
|
||||||
|
|
Loading…
Reference in a new issue