Fix a2dp_source_get error checking

This commit is contained in:
Johan Hedberg 2009-04-15 23:11:26 +03:00
parent f1af647c4b
commit d2fe0f577f

View File

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