mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
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:
parent
40eceaf64a
commit
ad31d5bb81
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue