summaryrefslogtreecommitdiff
path: root/toxav/toxmedia.c
diff options
context:
space:
mode:
authormannol <eniz_vukovic@hotmail.com>2014-02-04 23:22:01 +0100
committermannol <eniz_vukovic@hotmail.com>2014-02-16 19:11:55 -0500
commit82a9d1ddd028dba55c99740e5d8e19a297dbcc1e (patch)
tree246ab748a2c0fc82274b7e37d61e0acb1f642a6c /toxav/toxmedia.c
parentfaaaa052065ad3ec283d8402d4acc0781cee9b50 (diff)
Fixed bug
Diffstat (limited to 'toxav/toxmedia.c')
-rw-r--r--toxav/toxmedia.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxav/toxmedia.c b/toxav/toxmedia.c
index 00b1ebfc..cc0d72f9 100644
--- a/toxav/toxmedia.c
+++ b/toxav/toxmedia.c
@@ -58,7 +58,7 @@ struct jitter_buffer *create_queue(int capacity)
58{ 58{
59 struct jitter_buffer *q; 59 struct jitter_buffer *q;
60 q = (struct jitter_buffer *)calloc(sizeof(struct jitter_buffer),1); 60 q = (struct jitter_buffer *)calloc(sizeof(struct jitter_buffer),1);
61 q->queue = (RTPMessage **)calloc((sizeof(RTPMessage) * capacity),1); 61 q->queue = (RTPMessage **)calloc(sizeof(RTPMessage), capacity);
62 int i = 0; 62 int i = 0;
63 63
64 for (i = 0; i < capacity; ++i) { 64 for (i = 0; i < capacity; ++i) {