bin: Fix minor race when adding to a bin
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 3 Sep 2019 17:44:24 +0000 (13:44 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 3 Sep 2019 19:42:17 +0000 (15:42 -0400)
commit80a76a4b4d3bf1246e9559b341e02488120cbc5e
tree49c1c4aea4a32354fcf3049f0edc50922d62cdda
parent83e0da2061a7bdc7d910bad2e005112753a8c3c5
bin: Fix minor race when adding to a bin

This patch simply add a null check around a case where a child may have
been unparented concurrently to the deep_add_remove operation. This was
found by accident in the form of an "IS_GST_OBJECT" assertion, but had
no other known side effect in that test.
gst/gstbin.c