x11: let old pool drain

Let the old pool drain without deactivating it, some elements might still be
using it.
This commit is contained in:
Wim Taymans 2011-07-26 14:10:33 +02:00
parent 662c1f4b6c
commit d013481d8e
2 changed files with 4 additions and 4 deletions

View file

@ -1150,8 +1150,8 @@ gst_ximagesink_setcaps (GstBaseSink * bsink, GstCaps * caps)
/* unref the old sink */ /* unref the old sink */
if (oldpool) { if (oldpool) {
/* deactivate */ /* we don't deactivate, some elements might still be using it, it will be
gst_buffer_pool_set_active (oldpool, FALSE); * deactivated when the last ref is gone */
gst_object_unref (oldpool); gst_object_unref (oldpool);
} }
g_mutex_unlock (ximagesink->flow_lock); g_mutex_unlock (ximagesink->flow_lock);

View file

@ -1660,8 +1660,8 @@ gst_xvimagesink_setcaps (GstBaseSink * bsink, GstCaps * caps)
/* unref the old sink */ /* unref the old sink */
if (oldpool) { if (oldpool) {
/* deactivate */ /* we don't deactivate, some elements might still be using it, it will
gst_buffer_pool_set_active (oldpool, FALSE); * be deactivated when the last ref is gone */
gst_object_unref (oldpool); gst_object_unref (oldpool);
} }