Commit a2a61192 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix bug when decoding events

parent 7a9d0bf6
......@@ -66,10 +66,13 @@ static bool_t read_event(MSEventQueue *q){
MSFilter *f;
unsigned int id;
void *data;
int argsize=id & 0xffff;
int evsize=argsize+16;
int argsize;
int evsize;
f=(MSFilter *)*(long*)(q->rptr);
id=(unsigned int)*(long*)(q->rptr+8);
argsize=id & 0xffff;
if (f->notify!=NULL)
f->notify(f->notify_ud,id,argsize>0 ? data : NULL);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment