[vlc-devel] [vlc-commits] vout: xcb_x11: missing initializer (cid #1049025)

Francois Cartegnie fcvlcdev at free.fr
Thu Apr 17 15:12:25 CEST 2014


Le 17/04/2014 14:49, Rémi Denis-Courmont a écrit :
> On Thu, 17 Apr 2014 14:48:25 +0200, Rémi Denis-Courmont <remi at remlab.net>
> wrote:
>>> vout: xcb_x11: missing initializer
>>
>> Sorry but I fail to see how this can be used uninitialized (and indeed,
> it
>> if were possible GCC would most certainly warn).
> 
> Besides zero is not a valid X11 visual ID in any case.
> 

fmt.depth == 8
vt->_class always != XCB_VISUAL_CLASS_TRUE_COLOR

and then used:
for (int i = xcb_depth_visuals_length (d); i > 0 && !vid; i--)

Francois



More information about the vlc-devel mailing list