summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-17 12:06:38 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-17 12:06:38 +0000
commitab622e0de1826968a0506d47dc766a59787074bc (patch)
treedc291f4eb290a703324d35442a1f74e7703be489 /audio
parent6cfc40dfe5fa7884acaa3ec50bae78475c968a7d (diff)
Fix seid counting in suspend and start requests
Diffstat (limited to 'audio')
-rw-r--r--audio/avdtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index 1687714b..32f67fce 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -941,7 +941,7 @@ static gboolean avdtp_start_cmd(struct avdtp *session, struct start_req *req,
return FALSE;
}
- seid_count = 1 + (sizeof(struct start_req) - size);
+ seid_count = 1 + size - sizeof(struct start_req);
seid = &req->first_seid;
@@ -1048,7 +1048,7 @@ static gboolean avdtp_suspend_cmd(struct avdtp *session,
return FALSE;
}
- seid_count = 1 + (sizeof(struct suspend_req) - size);
+ seid_count = 1 + size - sizeof(struct suspend_req);
seid = &req->first_seid;