summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorU. Artie Eoff <ullysses.a.eoff@intel.com>2020-01-10 09:26:44 -0800
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2020-01-10 17:40:56 +0000
commitad31d5bb8184f67de6755d4a404ff0aa306f67b2 (patch)
tree8a4860a7f09583f69f2454c481abb18e069f66bf
parent40eceaf64abd0d28ae233f39d10b7526af25fc51 (diff)
plugins: overlay: use proper NULL check on double pointer
Check the address of the variable is not NULL, not the address of the pointer.
-rw-r--r--gst/vaapi/gstvaapioverlay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/vaapi/gstvaapioverlay.c b/gst/vaapi/gstvaapioverlay.c
index f3baf75e..b478d439 100644
--- 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;
}