diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-07-15 16:34:02 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-07-15 16:35:44 +0200 |
commit | e461ab46d4ee6ef44266f7e2bf9b5508f1eb2770 (patch) | |
tree | b04fa8b01deef4083a86b77f0269abd813aeab18 /sys/ximage/ximagesink.c | |
parent | c49bc45b1bc05c8a6257254710bf6b49430e280b (diff) |
X11: also check the bufferpool
Don't just check the availability of the metadata but also if the buffer is
really from our bufferpool.
Diffstat (limited to 'sys/ximage/ximagesink.c')
-rw-r--r-- | sys/ximage/ximagesink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index 5bf8949ff..00c38176a 100644 --- a/sys/ximage/ximagesink.c +++ b/sys/ximage/ximagesink.c @@ -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"); |