videoparse: initialize update_size to FALSE when updating info

Otherwise, behavior will be undefined when no strides/offsets are set
and it will likely go wrong.

https://bugzilla.gnome.org/show_bug.cgi?id=760270
This commit is contained in:
Aurélien Zanelli 2016-01-28 18:20:44 +01:00 committed by Nicolas Dufresne
parent acb7205f91
commit 5fd3511859

View file

@ -434,7 +434,7 @@ gst_video_parse_update_info (GstVideoParse * vp)
gint fps_n, fps_d;
gint framesize;
guint i;
gboolean update_size;
gboolean update_size = FALSE;
gst_raw_parse_get_fps (GST_RAW_PARSE (vp), &fps_n, &fps_d);