bufferpool: also allow NULL params in _acquire

This commit is contained in:
Stefan Kost 2011-02-18 16:35:46 +01:00 committed by Wim Taymans
parent 9b1cadc329
commit 1dff415d8a

View file

@ -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;
}