[vlc-devel] [PATCH 2/2] Fix libvlc_media_get_tracks_info()

Rémi Denis-Courmont remi at remlab.net
Thu Dec 2 18:53:54 CET 2010


On Thu,  2 Dec 2010 09:49:29 +0100, Rafaël Carré <rafael.carre at gmail.com>
wrote:
>          /* We've found the right ES, replace it */
> +        /* FIXME: Unless it's not really the right ES */
> +        if (item->es[i]->i_codec == fmt->i_codec)
> +        {
>          es_format_Clean(item->es[i]);
>          free(item->es[i]);
>          item->es[i] = fmt_copy;
> +        }

Without context: it looks like fmt_copy is leaked when the new predicate is
false.

We really need unique IDs for each ES. But I do not believe it can be
implemented in a generic way - each and every demuxer must support it.

-- 
Rémi Denis-Courmont
http://www.remlab.net
http://fi.linkedin.com/in/remidenis




More information about the vlc-devel mailing list