memory: don't follow the parent in the fallback share
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 6 Apr 2011 17:19:55 +0000 (19:19 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 6 Apr 2011 17:19:55 +0000 (19:19 +0200)
gst/gstmemory.c

index cc477f5..bdbd5e4 100644 (file)
@@ -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;
 }