mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
x11: relax bufferpool checks
Check if the metadata belongs to us instead of checking the current bufferpool. The bufferpool can change at any time when upstream wants to renegotiate.
This commit is contained in:
parent
42b49f6b0e
commit
b0c64a10f8
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 && buf->pool == ximagesink->pool) {
|
||||
if (meta && meta->sink == ximagesink) {
|
||||
/* 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 && buf->pool == xvimagesink->pool) {
|
||||
if (meta && meta->sink == xvimagesink) {
|
||||
/* 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