From ab02b1db6c436c9b08a6ab2e48214eb89d126e17 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 16 Apr 2014 17:23:27 +0200 Subject: [PATCH] v4l2videodec: Initialise ioctl struct with zeroes before passing it to ioctl() --- sys/v4l2/gstv4l2videodec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/v4l2/gstv4l2videodec.c b/sys/v4l2/gstv4l2videodec.c index 125978e..50a5110 100644 --- a/sys/v4l2/gstv4l2videodec.c +++ b/sys/v4l2/gstv4l2videodec.c @@ -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; -- 2.7.4