How can i get source_id when i custom gstdsexample.cpp. In code under i have use dsexample->source_id to get id of video source but error, help me!
std::string IMpath = "/home/phongtsv/nvidia/";
IMpath = IMpath + std::to_string(dsexample->frame_num)+ "_source" + std::to_string(dsexample->source_id) +"_new" + ".jpg";
cv::imwrite(IMpath, *dsexample->cvmat);