[MPlayer-dev-eng] [PATCH] de-templatize TV new_handle function

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Sep 12 16:06:04 CEST 2010


On Sun, Sep 12, 2010 at 01:52:03PM +0200, Diego Biurrun wrote:
> +tvi_handle_t *tv_new_handle(const size_t size,

What's that const supposed to be good for?

> +    h->priv = malloc(size);
> +    if (!h->priv) {
> +        free(h);
> +        return NULL;
> +    }
> +    memset(h->priv, 0, size);

Merge these two into calloc while we change this function anyway.


More information about the MPlayer-dev-eng mailing list