g_cond_broadcast (&pool->empty_cond);
GST_OBJECT_UNLOCK (pool);
- if (pool->other_pool)
+ if (pool->other_pool && gst_buffer_pool_is_active (pool->other_pool))
gst_buffer_pool_set_flushing (pool->other_pool, TRUE);
}
GST_DEBUG_OBJECT (pool, "stop flushing");
- if (pool->other_pool)
+ if (pool->other_pool && gst_buffer_pool_is_active (pool->other_pool))
gst_buffer_pool_set_flushing (pool->other_pool, FALSE);
gst_poll_set_flushing (pool->poll, FALSE);