summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gst-libs/gst/vaapi/gstvaapiimage.c4
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);