mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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
This commit is contained in:
parent
933186aaa1
commit
98c2c8a052
3 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue