mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
memory: don't follow the parent in the fallback share
This commit is contained in:
parent
f332b700d5
commit
a13740db3f
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue