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:
Sebastian Dröge 2013-02-26 09:08:49 +01:00
parent 615a8ae635
commit 2ca0046934

View file

@ -425,7 +425,7 @@ gst_buffer_copy_into (GstBuffer * dest, GstBuffer * src,
tocopy = MIN (bsize - skip, left); 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 */ /* we need to clip something */
mem = gst_memory_share (mem, skip, tocopy); mem = gst_memory_share (mem, skip, tocopy);
skip = 0; skip = 0;