We have an django application which start Gstreamer with nvarguscamerasrc plugin. It starts the pipeline on request to API. So when 2 request are processed in the same time, one of them works fine, but other one just hangs after error:
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:390 Failed to create CaptureSession
I know that I cannot access the camera device twice. I just want to handle the second situation properly. I could not found any errors in the pipeline bus, just this log on the stdout. I am using Gst1.0 from gi python package
Does anybody know how I can detect if the device is already used or the session is already created, or how to catch the above error from gstreamer?