mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
ximage: don't share the memory
We can't share the memory on the buffer with other buffers because the metadata X(v)Image points to it and we don't want it to go away.
This commit is contained in:
parent
1999e73759
commit
c8fee4a4b3
2 changed files with 4 additions and 4 deletions
|
@ -178,8 +178,8 @@ gst_buffer_add_meta_ximage (GstBuffer * buffer, GstXImageSink * ximagesink,
|
|||
XSetErrorHandler (handler);
|
||||
|
||||
gst_buffer_take_memory (buffer,
|
||||
gst_memory_new_wrapped (0, meta->ximage->data, NULL,
|
||||
meta->size, 0, meta->size));
|
||||
gst_memory_new_wrapped (GST_MEMORY_FLAG_NO_SHARE, meta->ximage->data,
|
||||
NULL, meta->size, 0, meta->size));
|
||||
|
||||
g_mutex_unlock (ximagesink->x_lock);
|
||||
|
||||
|
|
|
@ -210,8 +210,8 @@ gst_buffer_add_meta_xvimage (GstBuffer * buffer, GstXvImageSink * xvimagesink,
|
|||
XSetErrorHandler (handler);
|
||||
|
||||
gst_buffer_take_memory (buffer,
|
||||
gst_memory_new_wrapped (0, meta->xvimage->data, NULL,
|
||||
meta->size, 0, meta->size));
|
||||
gst_memory_new_wrapped (GST_MEMORY_FLAG_NO_SHARE, meta->xvimage->data,
|
||||
NULL, meta->size, 0, meta->size));
|
||||
|
||||
g_mutex_unlock (xvimagesink->x_lock);
|
||||
|
||||
|
|
Loading…
Reference in a new issue