Commit d013481d authored by Wim Taymans's avatar Wim Taymans

x11: let old pool drain

Let the old pool drain without deactivating it, some elements might still be
using it.
parent 662c1f4b
......@@ -1150,8 +1150,8 @@ gst_ximagesink_setcaps (GstBaseSink * bsink, GstCaps * caps)
/* 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);
......
......@@ -1660,8 +1660,8 @@ gst_xvimagesink_setcaps (GstBaseSink * bsink, GstCaps * caps)
/* 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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment