mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
pool: fix image pool to check for the video format to use.
Make gst_vaapi_image_pool_new() succeed, and thus returning a valid image pool object, only if the underlying VA display does support the requested VA image format.
This commit is contained in:
parent
4ca7922f4b
commit
60b003709f
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ image_pool_init(GstVaapiVideoPool *base_pool, const GstVideoInfo *vip)
|
|||
pool->format = GST_VIDEO_INFO_FORMAT(vip);
|
||||
pool->width = GST_VIDEO_INFO_WIDTH(vip);
|
||||
pool->height = GST_VIDEO_INFO_HEIGHT(vip);
|
||||
return TRUE;
|
||||
return gst_vaapi_display_has_image_format(base_pool->display, pool->format);
|
||||
}
|
||||
|
||||
static gpointer
|
||||
|
|
Loading…
Reference in a new issue