vaapidisplay: Fix uninitialized value error for VA attribute
https://bugzilla.gnome.org/show_bug.cgi?id=763362
This commit is contained in:
parent
548528c817
commit
805a4733bf
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user