if (pclass->alloc_buffer (pool, &buffer, NULL) != GST_FLOW_OK)
goto alloc_failed;
+ GST_LOG_OBJECT (pool, "prealloced buffer %d: %p", i, buffer);
/* store in the queue */
gst_atomic_queue_push (pool->queue, buffer);
gst_poll_write_control (pool->poll);
pclass = GST_BUFFER_POOL_GET_CLASS (pool);
+ GST_LOG_OBJECT (pool, "starting");
/* start the pool, subclasses should allocate buffers and put them
* in the queue */
if (G_LIKELY (pclass->start)) {
pclass = GST_BUFFER_POOL_GET_CLASS (pool);
+ GST_LOG_OBJECT (pool, "stopping");
if (G_LIKELY (pclass->stop)) {
if (!pclass->stop (pool))
return FALSE;
pclass = GST_BUFFER_POOL_GET_CLASS (pool);
+ GST_LOG_OBJECT (pool, "active %d", active);
+
GST_BUFFER_POOL_LOCK (pool);
/* just return if we are already in the right state */
if (pool->active == active)