From ad31d5bb8184f67de6755d4a404ff0aa306f67b2 Mon Sep 17 00:00:00 2001 From: "U. Artie Eoff" Date: Fri, 10 Jan 2020 09:26:44 -0800 Subject: [PATCH] plugins: overlay: use proper NULL check on double pointer Check the address of the variable is not NULL, not the address of the pointer. --- gst/vaapi/gstvaapioverlay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/vaapi/gstvaapioverlay.c b/gst/vaapi/gstvaapioverlay.c index f3baf75e24..b478d43911 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; }