Let the old pool drain without deactivating it, some elements might still be
using it.
/* unref the old sink */
if (oldpool) {
- /* deactivate */
- gst_buffer_pool_set_active (oldpool, FALSE);
+ /* we don't deactivate, some elements might still be using it, it will be
+ * deactivated when the last ref is gone */
gst_object_unref (oldpool);
}
g_mutex_unlock (ximagesink->flow_lock);
/* unref the old sink */
if (oldpool) {
- /* deactivate */
- gst_buffer_pool_set_active (oldpool, FALSE);
+ /* we don't deactivate, some elements might still be using it, it will
+ * be deactivated when the last ref is gone */
gst_object_unref (oldpool);
}