diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-engine/post.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/xine-engine/post.c b/src/xine-engine/post.c index 4d8032bc0..af791c1f7 100644 --- a/src/xine-engine/post.c +++ b/src/xine-engine/post.c @@ -30,13 +30,10 @@ void _x_post_init(post_plugin_t *post, int num_audio_inputs, int num_video_inputs) { - int audio_inputs_size = (num_audio_inputs + 1) * sizeof(xine_audio_port_t *); - int video_inputs_size = (num_video_inputs + 1) * sizeof(xine_video_port_t *); - post->input = xine_list_new(); post->output = xine_list_new(); - post->xine_post.audio_input = (xine_audio_port_t **)xine_xmalloc(audio_inputs_size); - post->xine_post.video_input = (xine_video_port_t **)xine_xmalloc(video_inputs_size); + post->xine_post.audio_input = calloc(num_audio_inputs + 1, sizeof(xine_audio_port_t *)); + post->xine_post.audio_input = calloc(num_video_inputs + 1, sizeof(xine_video_port_t *)); } |