From b92d639fbf60c172a008cd93e4e35cc7cf9bc447 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Wed, 10 Feb 2016 14:01:54 +0100 Subject: [PATCH] bufferpool: pass acquire params to alloc_buffer When allocating a new buffer in the pool, both the do_alloc_buffer() and the vmethod, alloc_buffer(), receive the parameter GstBufferPoolAcquireParams. Nonetheless, when default_acquire_buffer() calls the do_alloc_buffer() it does not pass the received GstBufferPoolAcquireParams, so when the user pass those parameters they are ignored by alloc_buffer() vmethod. This one-liner patch pass the received acquire params to do_alloc_buffer(). https://bugzilla.gnome.org/show_bug.cgi?id=761824 --- gst/gstbufferpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstbufferpool.c b/gst/gstbufferpool.c index 3bbff34..a54b42d 100644 --- a/gst/gstbufferpool.c +++ b/gst/gstbufferpool.c @@ -1088,7 +1088,7 @@ default_acquire_buffer (GstBufferPool * pool, GstBuffer ** buffer, /* no buffer, try to allocate some more */ GST_LOG_OBJECT (pool, "no buffer, trying to allocate"); - result = do_alloc_buffer (pool, buffer, NULL); + result = do_alloc_buffer (pool, buffer, params); if (G_LIKELY (result == GST_FLOW_OK)) /* we have a buffer, return it */ break; -- 2.7.4