Original commit message from CVS:
ref pool before creating buffer that's using it
g_return_val_if_fail (pool != NULL, NULL);
+ gst_data_ref (GST_DATA (pool));
+
buffer = pool->buffer_new (pool, offset, size, pool->user_data);
if (!buffer)
return NULL;
GST_BUFFER_BUFFERPOOL (buffer) = pool;
- gst_data_ref (GST_DATA (pool));
/* override the buffer refcount functions with those from the pool (if any) */
if (pool->buffer_free)