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

Hugo Beauzee-Luyssen beauze.h at gmail.com
Tue Feb 2 12:33:31 CET 2010


2010/2/2 Rémi Denis-Courmont <remi at remlab.net>:
>
> 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.
>

Well forcing both values to be get together seems like a anti feature
to me, but I don't really have more argument to provide so...


-- 
Hugo Beauzée-Luyssen



More information about the vlc-devel mailing list