plugins: overlay: use proper NULL check on double pointer

Check the address of the variable is not NULL,
not the address of the pointer.
This commit is contained in:
U. Artie Eoff 2020-01-10 09:26:44 -08:00 committed by Víctor Manuel Jáquez Leal
parent 40eceaf64a
commit ad31d5bb81

View 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;
}