From a13740db3f96a913a61241ef00bf2a60907f0394 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 6 Apr 2011 19:19:55 +0200 Subject: [PATCH] memory: don't follow the parent in the fallback share --- gst/gstmemory.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gst/gstmemory.c b/gst/gstmemory.c index cc477f5..bdbd5e4 100644 --- a/gst/gstmemory.c +++ b/gst/gstmemory.c @@ -287,12 +287,8 @@ static GstMemory * _fallback_share (GstMemory * mem, gsize offset, gsize size) { GstMemoryDefault *sub; - GstMemory *parent; - - /* find the real parent */ - parent = mem->parent ? mem->parent : mem; - sub = _default_mem_new (0, parent, NULL, NULL, size, offset, size); + sub = _default_mem_new (0, mem, NULL, NULL, size, offset, size); return (GstMemory *) sub; } -- 2.7.4