memory: don't follow the parent in the fallback share

This commit is contained in:
Wim Taymans 2011-04-06 19:19:55 +02:00
parent f332b700d5
commit a13740db3f

View 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;
}