From 1dff415d8a2dc01e9e3420273c92b6b67d692d2e Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Fri, 18 Feb 2011 16:35:46 +0100 Subject: [PATCH] bufferpool: also allow NULL params in _acquire --- gst/gstbufferpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstbufferpool.c b/gst/gstbufferpool.c index 5a680a2..f300499 100644 --- a/gst/gstbufferpool.c +++ b/gst/gstbufferpool.c @@ -433,7 +433,7 @@ default_acquire_buffer (GstBufferPool * pool, GstBuffer ** buffer, } /* check if we need to wait */ - if (!(params->flags & GST_BUFFER_POOL_FLAG_WAIT)) { + if (params && !(params->flags & GST_BUFFER_POOL_FLAG_WAIT)) { result = GST_FLOW_UNEXPECTED; break; } -- 2.7.4