summaryrefslogtreecommitdiffstats
path: root/audio/a2dp.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-11 15:52:27 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-11 15:52:27 +0000
commit9494c146cec1df466c2f331957748beeac8d745a (patch)
treeee76a5688fc5a3576ac2f68331038a72988001ed /audio/a2dp.c
parentc1761757dfeb3bf1802c5486d652d8f3852f939e (diff)
Remove redundant stream fd from config response
Diffstat (limited to 'audio/a2dp.c')
-rw-r--r--audio/a2dp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/audio/a2dp.c b/audio/a2dp.c
index 3afc133d..abd348c3 100644
--- a/audio/a2dp.c
+++ b/audio/a2dp.c
@@ -552,7 +552,8 @@ gboolean a2dp_select_capabilities(struct avdtp_remote_sep *rsep, GSList **caps)
return TRUE;
}
-gboolean a2dp_get_config(struct avdtp_stream *stream, struct ipc_data_cfg **cfg)
+gboolean a2dp_get_config(struct avdtp_stream *stream,
+ struct ipc_data_cfg **cfg, int *fd)
{
struct avdtp_service_capability *cap;
struct avdtp_media_codec_capability *codec_cap = NULL;
@@ -563,10 +564,10 @@ gboolean a2dp_get_config(struct avdtp_stream *stream, struct ipc_data_cfg **cfg)
rsp = g_malloc0(sizeof(struct ipc_data_cfg) +
sizeof(struct ipc_codec_sbc));
- rsp->fd = -1;
+ *fd = -1;
sbc = (void *) rsp->data;
- if (!avdtp_stream_get_transport(stream, &rsp->fd, &rsp->pkt_len,
+ if (!avdtp_stream_get_transport(stream, fd, &rsp->pkt_len,
&caps)) {
g_free(rsp);
return FALSE;