v4l2videodec: Initialise ioctl struct with zeroes before passing it to ioctl()

This commit is contained in:
Sebastian Dröge 2014-04-16 17:23:27 +02:00
parent 5b4681dfe7
commit ab02b1db6c

View file

@ -840,6 +840,8 @@ gst_v4l2_video_dec_probe_caps (gchar * device, gint video_fd,
for (n = 0;; n++) {
GstStructure *template;
memset (&format, 0, sizeof (format));
format.index = n;
format.type = type;