diff options
author | Edward Hervey <bilboed@bilboed.com> | 2008-12-03 17:47:44 +0000 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2008-12-03 17:47:44 +0000 |
commit | 98c2c8a052726a43ef847458aa23ef112c65cffd (patch) | |
tree | c7bc609d12d21750d3cac676800465e50451736d /sys | |
parent | 933186aaa183d098d1be0b5d5c0bfd9fec4caf0b (diff) |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ximage/ximagesink.c | 2 | ||||
-rw-r--r-- | sys/xvimage/xvimagesink.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index 220d306a..de2b015f 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 f831b7c2..4133c27b 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); } |