diff options
author | Stefan Kost <ensonic@users.sf.net> | 2011-02-18 16:35:46 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-03-02 11:23:21 +0100 |
commit | 1dff415d8a2dc01e9e3420273c92b6b67d692d2e (patch) | |
tree | 92f132ffcf07c9ed1c16d2e45d92a08aacab3961 | |
parent | 9b1cadc329dfd25811e388b2533b7da3d834f73d (diff) |
bufferpool: also allow NULL params in _acquire
-rw-r--r-- | gst/gstbufferpool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gstbufferpool.c b/gst/gstbufferpool.c index 5a680a253..f30049954 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; } |