projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cde7db
)
libs: image: init all image fields correctly.
author
He Junyan
<junyan.he@hotmail.com>
Sun, 5 Jan 2020 11:32:16 +0000
(19:32 +0800)
committer
Víctor Manuel Jáquez Leal
<vjaquez@igalia.com>
Mon, 6 Jan 2020 17:55:09 +0000
(17:55 +0000)
gst-libs/gst/vaapi/gstvaapiimage.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/vaapi/gstvaapiimage.c
b/gst-libs/gst/vaapi/gstvaapiimage.c
index
9349af4
..
c67ec1d
100644
(file)
--- 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);