mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 17:05:52 +00:00
va: Fix error handling for base transform
Need to check the returned value of gst_buffer_pool_set_active() when setting the active status of buffer pool. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1131>
This commit is contained in:
parent
4be5c7ce0a
commit
2eaba0cefa
1 changed files with 5 additions and 1 deletions
|
@ -729,7 +729,11 @@ _get_sinkpad_pool (GstVaBaseTransform * self)
|
||||||
|
|
||||||
gst_object_unref (allocator);
|
gst_object_unref (allocator);
|
||||||
|
|
||||||
gst_buffer_pool_set_active (self->priv->sinkpad_pool, TRUE);
|
if (!gst_buffer_pool_set_active (self->priv->sinkpad_pool, TRUE)) {
|
||||||
|
GST_WARNING_OBJECT (self, "failed to active the sinkpad pool %"
|
||||||
|
GST_PTR_FORMAT, self->priv->sinkpad_pool);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return self->priv->sinkpad_pool;
|
return self->priv->sinkpad_pool;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue