mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
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:
parent
83b0583a7a
commit
53031e0a9e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue