diff options
author | He Junyan <junyan.he@hotmail.com> | 2020-01-05 19:32:16 +0800 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2020-01-06 17:55:09 +0000 |
commit | 1b7f737ecdd9c64b6792c6577d7ad92dcd25a31e (patch) | |
tree | 59d056157d50ae63989d9a1d5e800845b2931ed8 | |
parent | 3cde7db1d36798c7dab16d0dc5790dc1cf81249f (diff) |
libs: image: init all image fields correctly.
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiimage.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiimage.c b/gst-libs/gst/vaapi/gstvaapiimage.c index 9349af44..c67ec1dd 100644 --- a/gst-libs/gst/vaapi/gstvaapiimage.c +++ b/gst-libs/gst/vaapi/gstvaapiimage.c @@ -232,6 +232,10 @@ gst_vaapi_image_init (GstVaapiImage * image, GstVaapiDisplay * display) image->internal_image.buf = VA_INVALID_ID; image->image.image_id = VA_INVALID_ID; image->image.buf = VA_INVALID_ID; + image->image_data = NULL; + image->internal_format = image->format = GST_VIDEO_FORMAT_UNKNOWN; + image->width = image->height = 0; + image->is_linear = FALSE; } GST_DEFINE_MINI_OBJECT_TYPE (GstVaapiImage, gst_vaapi_image); |