vaapidisplay: Fix uninitialized value error for VA attribute

https://bugzilla.gnome.org/show_bug.cgi?id=763362
This commit is contained in:
Vineeth TM 2016-03-09 14:13:24 +09:00 committed by Víctor Manuel Jáquez Leal
parent 548528c817
commit 805a4733bf

View file

@ -1798,7 +1798,7 @@ get_attribute (GstVaapiDisplay * display, VADisplayAttribType type,
gint * value) gint * value)
{ {
GstVaapiDisplayPrivate *const priv = GST_VAAPI_DISPLAY_GET_PRIVATE (display); GstVaapiDisplayPrivate *const priv = GST_VAAPI_DISPLAY_GET_PRIVATE (display);
VADisplayAttribute attr; VADisplayAttribute attr = { 0, };
VAStatus status; VAStatus status;
attr.type = type; attr.type = type;
@ -1814,7 +1814,7 @@ static gboolean
set_attribute (GstVaapiDisplay * display, VADisplayAttribType type, gint value) set_attribute (GstVaapiDisplay * display, VADisplayAttribType type, gint value)
{ {
GstVaapiDisplayPrivate *const priv = GST_VAAPI_DISPLAY_GET_PRIVATE (display); GstVaapiDisplayPrivate *const priv = GST_VAAPI_DISPLAY_GET_PRIVATE (display);
VADisplayAttribute attr; VADisplayAttribute attr = { 0, };
VAStatus status; VAStatus status;
attr.type = type; attr.type = type;