mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2025-01-25 22:03:41 +08:00
Ignore non-sink devices in sink.c avdtp_state_callback
This commit is contained in:
parent
6e947941ef
commit
e6f892a966
@ -93,6 +93,9 @@ static void avdtp_state_callback(struct audio_device *dev,
|
||||
struct sink *sink = dev->sink;
|
||||
const char *state_str;
|
||||
|
||||
if (sink == NULL)
|
||||
return;
|
||||
|
||||
switch (new_state) {
|
||||
case AVDTP_SESSION_STATE_DISCONNECTED:
|
||||
if (sink->connecting) {
|
||||
|
Loading…
Reference in New Issue
Block a user