sys/: Clear all flags on buffers returned from the image pool.
authorEdward Hervey <bilboed@bilboed.com>
Wed, 3 Dec 2008 17:47:44 +0000 (17:47 +0000)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 3 Dec 2008 17:47:44 +0000 (17:47 +0000)
Original commit message from CVS:
* sys/ximage/ximagesink.c: (gst_ximagesink_buffer_alloc):
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_buffer_alloc):
Clear all flags on buffers returned from the image pool.
Fixes #563143

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

index ab60ed7..f94c275 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-12-03  Edward Hervey  <edward.hervey@collabora.co.uk>
+
+       * sys/ximage/ximagesink.c: (gst_ximagesink_buffer_alloc):
+       * sys/xvimage/xvimagesink.c: (gst_xvimagesink_buffer_alloc):
+       Clear all flags on buffers returned from the image pool.
+       Fixes #563143
+
 2008-11-29  Sebastian Dröge  <sebastian.droege@collabora.co.uk>
 
        Patch by: Cygwin Ports maintainer
index 220d306..de2b015 100644 (file)
@@ -1793,6 +1793,8 @@ alloc:
   }
   /* Now we should have a ximage, set appropriate caps on it */
   if (ximage) {
+    /* Make sure the buffer is cleared of any previously used flags */
+    GST_MINI_OBJECT_CAST (ximage)->flags = 0;
     gst_buffer_set_caps (GST_BUFFER_CAST (ximage), alloc_caps);
   }
 
index f831b7c..4133c27 100644 (file)
@@ -2469,6 +2469,8 @@ reuse_last_caps:
   }
 
   if (xvimage) {
+    /* Make sure the buffer is cleared of any previously used flags */
+    GST_MINI_OBJECT_CAST (xvimage)->flags = 0;
     gst_buffer_set_caps (GST_BUFFER_CAST (xvimage), intersection);
   }