mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue