bluez: AVDTP: Fix closing invalid FD on error

In gst_avdtp_sink_start(), if bt_audio_service_open() failed, there was
an attempt to close an invalid file descriptor (through
bt_audio_service_close()).
This commit is contained in:
Anderson Lizardo 2011-11-17 13:29:06 -04:00 committed by Tim-Philipp Müller
parent 83b0583a7a
commit 53031e0a9e

View file

@ -1444,7 +1444,7 @@ gst_avdtp_sink_start (GstBaseSink * basesink)
err = -errno;
GST_ERROR_OBJECT (self, "Cannot open connection to bt "
"audio service: %s %d", strerror (-err), -err);
goto failed;
return FALSE;
}
self->server = g_io_channel_unix_new (sk);