How to modify deepstream_sink_bin.c ? I get error

What’s your whole pipeline like? Could you attach the pipeline graphics?
You can refer the link below to know how to get the graphics:
Generate GStreamer Pipeline Graph