From 10b67e9913ac6e37213ad53f93b3883d1a12f835 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Tue, 18 Mar 2014 17:33:38 -0400 Subject: [PATCH] v4l2transform: Ensure output pool is activated That pool may be different then the internal pool. --- sys/v4l2/gstv4l2transform.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/v4l2/gstv4l2transform.c b/sys/v4l2/gstv4l2transform.c index 44ba8585e5..cfcd60dced 100644 --- a/sys/v4l2/gstv4l2transform.c +++ b/sys/v4l2/gstv4l2transform.c @@ -439,6 +439,9 @@ gst_v4l2_transform_prepare_output_buffer (GstBaseTransform * trans, pool = gst_base_transform_get_buffer_pool (trans); + if (!gst_buffer_pool_set_active (pool, TRUE)) + goto activate_failed; + GST_DEBUG_OBJECT (self, "Dequeue output buffer"); ret = gst_buffer_pool_acquire_buffer (pool, outbuf, NULL); g_object_unref (pool);