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)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 3 Sep 2019 21:27:38 +0000 (22:27 +0100)
commit94ba1cea88788fd3ad72fadcc2ceb7884ed6df50
tree2e024d3e7894ca627d4ced11231674716121a2f7
parent090a9283290e2d48a696fdb8dda3f5c644deebf3
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