5.58
This commit is contained in:
parent
47bb2ac98f
commit
81b5b9a7d2
@ -1,41 +0,0 @@
|
|||||||
From 28ddec8d6b829e002fa268c07b71e4c564ba9e16 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
|
|
||||||
Date: Thu, 11 Mar 2021 07:36:07 -0800
|
|
||||||
Subject: [PATCH] avdtp: Fix removing all remote SEPs when loading from cache
|
|
||||||
|
|
||||||
If avdtp_discover is called after cache has been loaded it end up
|
|
||||||
removing all remote SEPs as they have not been discovered yet.
|
|
||||||
|
|
||||||
Fixes: https://github.com/bluez/bluez/issues/102
|
|
||||||
---
|
|
||||||
profiles/audio/avdtp.c | 16 ++++++++++++----
|
|
||||||
1 file changed, 12 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c
|
|
||||||
index 088ca58b3..1d5871c62 100644
|
|
||||||
--- a/profiles/audio/avdtp.c
|
|
||||||
+++ b/profiles/audio/avdtp.c
|
|
||||||
@@ -3381,10 +3381,18 @@ int avdtp_discover(struct avdtp *session, avdtp_discover_cb_t cb,
|
|
||||||
session->discover = g_new0(struct discover_callback, 1);
|
|
||||||
|
|
||||||
if (session->seps) {
|
|
||||||
- session->discover->cb = cb;
|
|
||||||
- session->discover->user_data = user_data;
|
|
||||||
- session->discover->id = g_idle_add(process_discover, session);
|
|
||||||
- return 0;
|
|
||||||
+ struct avdtp_remote_sep *sep = session->seps->data;
|
|
||||||
+
|
|
||||||
+ /* Check that SEP have been discovered as it may be loaded from
|
|
||||||
+ * cache.
|
|
||||||
+ */
|
|
||||||
+ if (sep->discovered) {
|
|
||||||
+ session->discover->cb = cb;
|
|
||||||
+ session->discover->user_data = user_data;
|
|
||||||
+ session->discover->id = g_idle_add(process_discover,
|
|
||||||
+ session);
|
|
||||||
+ return 0;
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
err = send_request(session, FALSE, NULL, AVDTP_DISCOVER, NULL, 0);
|
|
||||||
|
|
@ -5,8 +5,8 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: bluez
|
Name: bluez
|
||||||
Version: 5.56
|
Version: 5.58
|
||||||
Release: 4%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Bluetooth utilities
|
Summary: Bluetooth utilities
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.bluez.org/
|
URL: http://www.bluez.org/
|
||||||
@ -22,7 +22,6 @@ Patch11: 0002-systemd-Add-PrivateTmp-and-NoNewPrivileges-options.patch
|
|||||||
Patch12: 0003-systemd-Add-more-filesystem-lockdown.patch
|
Patch12: 0003-systemd-Add-more-filesystem-lockdown.patch
|
||||||
Patch13: 0004-systemd-More-lockdown.patch
|
Patch13: 0004-systemd-More-lockdown.patch
|
||||||
Patch14: 0005-media-rename-local-function-conflicting-with-pause-2.patch
|
Patch14: 0005-media-rename-local-function-conflicting-with-pause-2.patch
|
||||||
Patch15: bluez-avdtp-fix-removing-all-seps-when-loading-from-cache.patch
|
|
||||||
|
|
||||||
BuildRequires: dbus-devel >= 1.6
|
BuildRequires: dbus-devel >= 1.6
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
@ -315,6 +314,9 @@ install emulator/btvirt ${RPM_BUILD_ROOT}/%{_libexecdir}/bluetooth/
|
|||||||
%{_userunitdir}/obex.service
|
%{_userunitdir}/obex.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Apr 04 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 5.58-1
|
||||||
|
- Update to 5.58
|
||||||
|
|
||||||
* Sun Mar 14 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 5.56-4
|
* Sun Mar 14 2021 Peter Robinson <pbrobinson@fedoraproject.org> - 5.56-4
|
||||||
- Fix for avdtp audio disconnexts
|
- Fix for avdtp audio disconnexts
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (bluez-5.56.tar.xz) = b320ee9d49a516f5cecb5fbc410ba42e9127f44ebcfb95647f68bd5d300147d0eaf633f8e8d0678631a2184ea3afae7b01b5f228157328874fa2a87832ed0ae1
|
SHA512 (bluez-5.58.tar.xz) = 159b554e0afd56af5da6f8333383f2fdf96d77a0e82d762bf4b37786e7312b7e61fbbae0f18b26442a606e0a232f48e0f45a4b38b95de36c7daf384f582315a3
|
||||||
|
Loading…
Reference in New Issue
Block a user