Ignore non-sink devices in sink.c avdtp_state_callback

This commit is contained in:
Johan Hedberg 2009-03-24 23:14:24 +02:00
parent 6e947941ef
commit e6f892a966

View File

@ -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) {