x11: let old pool drain
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 26 Jul 2011 12:10:33 +0000 (14:10 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 26 Jul 2011 12:10:33 +0000 (14:10 +0200)
Let the old pool drain without deactivating it, some elements might still be
using it.

sys/ximage/ximagesink.c
sys/xvimage/xvimagesink.c

index 35d97d2..7413b78 100644 (file)
@@ -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);
index 22811ce..2533d3a 100644 (file)
@@ -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);
   }