plugins: overlay: use proper NULL check on double pointer
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Fri, 10 Jan 2020 17:26:44 +0000 (09:26 -0800)
committerVí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

index f3baf75..b478d43 100644 (file)
@@ -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;
   }