mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2025-01-11 05:53:49 +08:00
Handle sink->session == NULL && session == NULL correctly in sink_setup_stream
This commit is contained in:
parent
e6f892a966
commit
3cb26e9bcf
@ -487,6 +487,9 @@ gboolean sink_setup_stream(struct sink *sink, struct avdtp *session)
|
||||
if (session && !sink->session)
|
||||
sink->session = avdtp_ref(session);
|
||||
|
||||
if (!sink->session)
|
||||
return FALSE;
|
||||
|
||||
if (avdtp_discover(sink->session, discovery_complete, sink) < 0)
|
||||
return FALSE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user