Diff between da5daf532409812c41a237a6a6126868f6867079 and 6b0a08776ae44a9102d7c6875a77e83dc6a11a37
Changed Files
| File | Additions | Deletions | Status |
| profiles/audio/media.c | +1 | -1 | modified |
Full Patch
diff --git a/profiles/audio/media.c b/profiles/audio/media.c
index 332f643..deb321e 100644
--- a/profiles/audio/media.c
+++ b/profiles/audio/media.c
@@ -1110,7 +1110,7 @@ static void pac_config_cb(struct media_endpoint *endpoint, void *ret, int size,
if (!transport)
return;
- data->cb(data->stream, error_code == 0 ? 0 : -EINVAL);
+ data->cb(data->stream, (error_code && *error_code == 0) ? 0 : -EINVAL);
}
static struct media_transport *pac_ucast_config(struct bt_bap_stream *stream,