d3dvideosink: Deactivate the fallback buffer pool when replacing it during caps changes
authorSebastian Dröge <sebastian@centricular.com>
Tue, 24 Feb 2015 09:18:38 +0000 (11:18 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 24 Feb 2015 09:19:48 +0000 (11:19 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=744615

sys/d3dvideosink/d3dvideosink.c

index 5568075..a06d494 100644 (file)
@@ -398,8 +398,10 @@ gst_d3dvideosink_set_caps (GstBaseSink * bsink, GstCaps * caps)
 
   if (oldpool)
     gst_object_unref (oldpool);
-  if (oldfbpool)
+  if (oldfbpool) {
+    gst_buffer_pool_set_active (oldfbpool, FALSE);
     gst_object_unref (oldfbpool);
+  }
 
   return TRUE;
   /* ERRORS */