mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
buffer: Fix inverted logic for deciding if memory should be shared or copied
https://bugzilla.gnome.org/show_bug.cgi?id=694717
This commit is contained in:
parent
615a8ae635
commit
2ca0046934
1 changed files with 1 additions and 1 deletions
|
@ -425,7 +425,7 @@ gst_buffer_copy_into (GstBuffer * dest, GstBuffer * src,
|
|||
|
||||
tocopy = MIN (bsize - skip, left);
|
||||
|
||||
if (tocopy < bsize && (!deep || !GST_MEMORY_IS_NO_SHARE (mem))) {
|
||||
if (tocopy < bsize && !deep && !GST_MEMORY_IS_NO_SHARE (mem)) {
|
||||
/* we need to clip something */
|
||||
mem = gst_memory_share (mem, skip, tocopy);
|
||||
skip = 0;
|
||||
|
|
Loading…
Reference in a new issue