Diff between e9163b09a3dff9d33362ebccfe9eb031e8f8cdda and 5d347b54714e0f2d750253be09b68b0c3119dd0a
Changed Files
| File | Additions | Deletions | Status |
| profiles/audio/media.c | +6 | -0 | modified |
Full Patch
diff --git a/profiles/audio/media.c b/profiles/audio/media.c
index b722278..326e50a 100644
--- a/profiles/audio/media.c
+++ b/profiles/audio/media.c
@@ -1003,6 +1003,12 @@ static void pac_config_cb(struct media_endpoint *endpoint, void *ret, int size,
{
struct pac_config_data *data = user_data;
gboolean *ret_value = ret;
+ struct media_transport *transport;
+
+ /* If transport was cleared, configuration was cancelled */
+ transport = find_transport(endpoint, data->stream);
+ if (!transport)
+ return;
data->cb(data->stream, ret_value ? 0 : -EINVAL);
}