mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
libs: image: init all image fields correctly.
This commit is contained in:
parent
3cde7db1d3
commit
1b7f737ecd
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue