vaapidecode: initialize variable

Coverity scan bug:

The variable will contain an arbitrary value left from earlier
computations.

Variable base_only is fetched from base-only property, and it may be
not assigned. It needs to be initialized.
This commit is contained in:
Víctor Manuel Jáquez Leal 2017-08-08 17:34:12 +02:00
parent 775f912247
commit 0b3ca62632

View file

@ -1175,7 +1175,7 @@ gst_vaapidecode_ensure_allowed_sinkpad_caps (GstVaapiDecode * decode)
GstCaps *caps, *allowed_sinkpad_caps;
GArray *profiles;
guint i;
gboolean base_only;
gboolean base_only = FALSE;
gboolean have_high = FALSE;
gboolean have_mvc = FALSE;