mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2025-01-11 05:53:49 +08:00
Fix a2dp_source_get error checking
This commit is contained in:
parent
f1af647c4b
commit
d2fe0f577f
@ -486,6 +486,11 @@ static void discovery_complete(struct avdtp *session, GSList *seps, struct avdtp
|
||||
}
|
||||
|
||||
sep = a2dp_source_get(session, rsep);
|
||||
if (!sep) {
|
||||
error("Unable to get a local source SEP");
|
||||
goto failed;
|
||||
}
|
||||
|
||||
id = a2dp_source_config(sink->session, sep, stream_setup_complete,
|
||||
caps, sink);
|
||||
if (id == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user