mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +00:00
X11: also check the bufferpool
Don't just check the availability of the metadata but also if the buffer is really from our bufferpool.
This commit is contained in:
parent
c49bc45b1b
commit
e461ab46d4
2 changed files with 2 additions and 2 deletions
|
@ -1292,7 +1292,7 @@ gst_ximagesink_show_frame (GstVideoSink * vsink, GstBuffer * buf)
|
|||
|
||||
meta = gst_buffer_get_meta_ximage (buf);
|
||||
|
||||
if (meta) {
|
||||
if (meta && buf->pool == ximagesink->pool) {
|
||||
/* If this buffer has been allocated using our buffer management we simply
|
||||
put the ximage which is in the PRIVATE pointer */
|
||||
GST_LOG_OBJECT (ximagesink, "buffer from our pool, writing directly");
|
||||
|
|
|
@ -1806,7 +1806,7 @@ gst_xvimagesink_show_frame (GstVideoSink * vsink, GstBuffer * buf)
|
|||
|
||||
meta = gst_buffer_get_meta_xvimage (buf);
|
||||
|
||||
if (meta) {
|
||||
if (meta && buf->pool == xvimagesink->pool) {
|
||||
/* If this buffer has been allocated using our buffer management we simply
|
||||
put the ximage which is in the PRIVATE pointer */
|
||||
GST_LOG_OBJECT (xvimagesink, "buffer %p from our pool, writing directly",
|
||||
|
|
Loading…
Reference in a new issue