mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
vaapipostproc: create filter surface pool if it does not exist yet.
ensure_srcpad_buffer_pool() tries to avoid unnecessarily deleting and recreating filter_pool. Unfortunately, this also meant it didn't create it if it did not exist. Fix it to always create the buffer pool if it does not exist. https://bugzilla.gnome.org/show_bug.cgi?id=723834 Signed-off-by: Simon Farnsworth <simon.farnsworth@onelan.co.uk>
This commit is contained in:
parent
faefd62e9b
commit
1a2c06a81c
1 changed files with 1 additions and 1 deletions
|
@ -1168,7 +1168,7 @@ ensure_srcpad_buffer_pool(GstVaapiPostproc *postproc, GstCaps *caps)
|
|||
gst_video_info_set_format(&vi, postproc->format,
|
||||
GST_VIDEO_INFO_WIDTH(&vi), GST_VIDEO_INFO_HEIGHT(&vi));
|
||||
|
||||
if (!video_info_changed(&vi, &postproc->filter_pool_info))
|
||||
if (postproc->filter_pool && !video_info_changed(&vi, &postproc->filter_pool_info))
|
||||
return TRUE;
|
||||
postproc->filter_pool_info = vi;
|
||||
|
||||
|
|
Loading…
Reference in a new issue