There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one. Thanks
Please refer to our open source: opt\nvidia\deepstream\deepstream-6.3\sources\apps\sample_apps\deepstream-app\deepstream_app.c.