From: Edward Hervey Date: Wed, 3 Dec 2008 17:47:44 +0000 (+0000) Subject: sys/: Clear all flags on buffers returned from the image pool. X-Git-Tag: 1.19.3~511^2~10153 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98c2c8a052726a43ef847458aa23ef112c65cffd;p=platform%2Fupstream%2Fgstreamer.git sys/: Clear all flags on buffers returned from the image pool. 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 --- diff --git a/ChangeLog b/ChangeLog index ab60ed7..f94c275 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-12-03 Edward Hervey + + * 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 Patch by: Cygwin Ports maintainer diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index 220d306..de2b015 100644 --- a/sys/ximage/ximagesink.c +++ b/sys/ximage/ximagesink.c @@ -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); } diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index f831b7c..4133c27 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -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); }