diff options
author | Keith Packard <keithp@keithp.com> | 2011-03-03 14:41:44 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-03-03 14:41:44 -0800 |
commit | 6c90e839d9872a37d371578c9c423e8213922044 (patch) | |
tree | 72148d81e7c54d16afeccab026caf8faf8db3b6e /record | |
parent | 0bc95d5b06dcea65a1aa193ea907b50f7dd168b5 (diff) | |
parent | edcceedbd35df576929685767d0b619659e5b020 (diff) |
Merge remote branch 'whot/for-keith'
Diffstat (limited to 'record')
-rw-r--r-- | record/record.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/record/record.c b/record/record.c index facaebb02..df3f9c6ec 100644 --- a/record/record.c +++ b/record/record.c @@ -807,6 +807,7 @@ RecordADeviceEvent(CallbackListPtr *pcbl, pointer nulldata, pointer calldata) RecordContextPtr pContext; RecordClientsAndProtocolPtr pRCAP; int eci; /* enabled context index */ + int count; for (eci = 0; eci < numEnabledContexts; eci++) { @@ -821,9 +822,11 @@ RecordADeviceEvent(CallbackListPtr *pcbl, pointer nulldata, pointer calldata) /* TODO check return values */ if (IsMaster(pei->device)) { - xEvent xE; - EventToCore(pei->event, &xE); - RecordSendProtocolEvents(pRCAP, pContext, &xE, 1); + xEvent *core_events; + EventToCore(pei->event, &core_events, &count); + RecordSendProtocolEvents(pRCAP, pContext, core_events, + count); + free(core_events); } EventToXI(pei->event, &xi_events, &count); |