About deepstream-app source code?

I am reading the source code of deepstream-app. I print the info while gst_add_bin. This is the order:

add: ----- multi_src_bin -----
add: ----- sink_bin -----
add: ----instance_bin->osd_bin.bin------
add: ----- tiled_display_bin -----
add: ----secondary_gie_bin.bin------
add: ----tracker_bin.bin------
add: ----primary_gie_bin.bin------

why does gst add secondary_gie before gst add primay_gie and tracker ?

gst_add_bin() adds the given element to the bin. Sets the element’s parent, and thus takes ownership of the element. An element can only be added to one bin.

I think you want to check gst_pad_link in fact.