Unable to do inference on jpg files

1.Did the deepsteam_image_decode_test.c run well in your env?
2.Could you try to set the sink to fakesink or refer the link below to set the sink to filesink?
https://forums.developer.nvidia.com/t/deepstream-sdk-faq/80236/30