summaryrefslogtreecommitdiff
path: root/src/post
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-14 18:30:19 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-14 18:30:19 +0200
commitcb2dc09164a533fc544c59469f6f8bd7d1cc5e04 (patch)
treeb6681a749f382c15f1c84f554961a9c64bd13742 /src/post
parenta99bea5eb67de57de5aa3259b5b5432d4aaa9c1a (diff)
downloadxine-lib-cb2dc09164a533fc544c59469f6f8bd7d1cc5e04.tar.gz
xine-lib-cb2dc09164a533fc544c59469f6f8bd7d1cc5e04.tar.bz2
Use xine_xcalloc instead of xine_xmalloc when mutiplying the number of elements by the size of the single element.
(transplanted from 512894f517c423fed0cadeca0d46c6d909403106) --HG-- extra : transplant_source : Q%28%94%F5%17%C4%23%FE%D0%CA%DE%CA%0DF%C6%D9%09%401%06
Diffstat (limited to 'src/post')
-rw-r--r--src/post/mosaico/mosaico.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/post/mosaico/mosaico.c b/src/post/mosaico/mosaico.c
index 50b1cfcdf..05c1f5f19 100644
--- a/src/post/mosaico/mosaico.c
+++ b/src/post/mosaico/mosaico.c
@@ -158,7 +158,7 @@ static post_plugin_t *mosaico_open_plugin(post_class_t *class_gen, int inputs,
_x_post_init(&this->post, 0, inputs);
- this->pip = (mosaico_pip_t *)xine_xmalloc(sizeof(mosaico_pip_t) * (inputs - 1));
+ this->pip = (mosaico_pip_t *)xine_xcalloc((inputs - 1), sizeof(mosaico_pip_t));
this->pip_count = inputs - 1;
pthread_cond_init(&this->vpts_limit_changed, NULL);