deepstream-app is a configurable pipeline builder. So you need to obey the design of deepstream-app. To modify the configuration part first(currently only one PGIE is supported), and then call create_primary_gie_bin() in deepstream_app.c with proper configuration.
This is a new feature. It is not where to add your second PGIE but you need to change some design. So you must understand the design first, then you can find the proper places.
Please investigate the code, the code introduces the design itself.
It will not save your time and effort if you don’t want to understand the code.