[vlc-devel] [Patch] Allowing output pointers to be NULL in libvlc_video_get_size

Rémi Denis-Courmont remi at remlab.net
Tue Feb 2 12:30:01 CET 2010


On Tue, 2 Feb 2010 10:24:55 +0100, Hugo Beauzee-Luyssen
<beauze.h at gmail.com> wrote:
> The recently added libvlc_video_get_size takes two parameters, used to
> output the values.
> This patch allows these pointers to be NULL, thus avoiding passing two
> pointers even when trying to get one value.
> The next patch removes the unused variables declarated in
> libvlc_video_get_{width,height}

The whole point of the change was to hint that you should always get both
values together. Adding the NULL check seems like an anti-feature to me.

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




More information about the vlc-devel mailing list