diff --git a/audio/avctp.c b/audio/avctp.c
index 5f6a677..6ba25e4 100644
--- a/audio/avctp.c
+++ b/audio/avctp.c
struct avctp_channel {
struct avctp *session;
GIOChannel *io;
+ uint8_t transaction;
guint watch;
uint16_t imtu;
uint16_t omtu;
GDestroyNotify destroy)
{
struct avctp_pending_req *p;
- static uint8_t transaction = 0;
p = g_new0(struct avctp_pending_req, 1);
p->chan = chan;
- p->transaction = transaction;
+ p->transaction = chan->transaction;
p->process = process;
p->data = data;
p->destroy = destroy;
- transaction++;
- transaction %= 16;
+ chan->transaction++;
+ chan->transaction %= 16;
return p;
}