From 805a4733bf213a1fbbdda5ccc951574cfc221fdd Mon Sep 17 00:00:00 2001 From: Vineeth TM Date: Wed, 9 Mar 2016 14:13:24 +0900 Subject: [PATCH] vaapidisplay: Fix uninitialized value error for VA attribute https://bugzilla.gnome.org/show_bug.cgi?id=763362 --- gst-libs/gst/vaapi/gstvaapidisplay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapidisplay.c b/gst-libs/gst/vaapi/gstvaapidisplay.c index 9de677b185..34f2faf425 100644 --- a/gst-libs/gst/vaapi/gstvaapidisplay.c +++ b/gst-libs/gst/vaapi/gstvaapidisplay.c @@ -1798,7 +1798,7 @@ get_attribute (GstVaapiDisplay * display, VADisplayAttribType type, gint * value) { GstVaapiDisplayPrivate *const priv = GST_VAAPI_DISPLAY_GET_PRIVATE (display); - VADisplayAttribute attr; + VADisplayAttribute attr = { 0, }; VAStatus status; attr.type = type; @@ -1814,7 +1814,7 @@ static gboolean set_attribute (GstVaapiDisplay * display, VADisplayAttribType type, gint value) { GstVaapiDisplayPrivate *const priv = GST_VAAPI_DISPLAY_GET_PRIVATE (display); - VADisplayAttribute attr; + VADisplayAttribute attr = { 0, }; VAStatus status; attr.type = type;