mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
gstcheck: Don't check pad refcount too early
Because of the new pad caching system, the peer pad might still have a reference on a pad. We therefore delay the refcount checking til 'after' we unlink the pad from any potential peer.
This commit is contained in:
parent
c044024e2c
commit
4525a405d5
1 changed files with 4 additions and 1 deletions
|
@ -244,7 +244,10 @@ gst_check_teardown_pad_by_name (GstElement * element, const gchar * name)
|
|||
|
||||
/* clean up floating src pad */
|
||||
pad_element = gst_element_get_static_pad (element, name);
|
||||
ASSERT_OBJECT_REFCOUNT (pad_element, "pad", 2);
|
||||
/* We don't check the refcount here since there *might* be
|
||||
* a pad cache holding an extra reference on pad_element.
|
||||
* To get to a state where no pad cache will exist,
|
||||
* we first unlink that pad. */
|
||||
pad_peer = gst_pad_get_peer (pad_element);
|
||||
|
||||
if (pad_peer) {
|
||||
|
|
Loading…
Reference in a new issue