vaapipostproc: create filter surface pool if it does not exist yet.
authorSimon Farnsworth <simon.farnsworth@onelan.co.uk>
Fri, 7 Feb 2014 12:27:50 +0000 (12:27 +0000)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 18 Jun 2014 15:30:12 +0000 (17:30 +0200)
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>
gst/vaapi/gstvaapipostproc.c

index 428cba4..73e1ea3 100644 (file)
@@ -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;