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:
40eceaf
)
plugins: overlay: use proper NULL check on double pointer
author
U. Artie Eoff
<ullysses.a.eoff@intel.com>
Fri, 10 Jan 2020 17:26:44 +0000
(09:26 -0800)
committer
Víctor Manuel Jáquez Leal
<vjaquez@igalia.com>
Fri, 10 Jan 2020 17:40:56 +0000
(17:40 +0000)
Check the address of the variable is not NULL,
not the address of the pointer.
gst/vaapi/gstvaapioverlay.c
patch
|
blob
|
history
diff --git
a/gst/vaapi/gstvaapioverlay.c
b/gst/vaapi/gstvaapioverlay.c
index
f3baf75
..
b478d43
100644
(file)
--- a/
gst/vaapi/gstvaapioverlay.c
+++ b/
gst/vaapi/gstvaapioverlay.c
@@
-446,7
+446,7
@@
gst_vaapi_overlay_create_output_buffer (GstVideoAggregator * vagg,
*outbuf = NULL;
if ((gst_buffer_pool_acquire_buffer (pool, outbuf, NULL) != GST_FLOW_OK)
- || !outbuf) {
+ || !
*
outbuf) {
GST_ERROR_OBJECT (overlay, "failed to create output video buffer");
return GST_FLOW_ERROR;
}