[vlc-devel] commit: Fix a uninitialized variable warning in xcb/xvideo.c. (JP Dinger )
Rémi Duraffort
ivoire at videolan.org
Mon Nov 16 18:50:36 CET 2009
> Fix a uninitialized variable warning in xcb/xvideo.c.
This seems wrong to me.
is_forced is initialized and used only if if "query" is equal to
VOUT_DISPLAY_CHANGE_DISPLAY_SIZE.
=====
if (query == VOUT_DISPLAY_CHANGE_SOURCE_ASPECT
|| query == VOUT_DISPLAY_CHANGE_SOURCE_CROP)
{[...]}
else
{
[...]
if (query == VOUT_DISPLAY_CHANGE_DISPLAY_SIZE)
is_forced = (bool)va_arg (ap, int);
}
/* */
if (query == VOUT_DISPLAY_CHANGE_DISPLAY_SIZE
&& is_forced
&& [...] )
{[...]}
=====
Anyway it does not change anything.
--
Rémi Duraffort | ivoire
More information about the vlc-devel
mailing list