Other Parts Discussed in Thread: SK-AM62A-LP,
Tool/software:
Hi TI-Team,
we are using your SK-AM62A-LP Eval boards and have written a C application that creates a Gstreamer pipeline using gst_parse_launch().
In the case that we need to switch for example from RGB to IR or change the resolution, we stop (gst_element_set_state(pipeline, GST_STATE_NULL)) and unref (gst_object_unref(pipeline)) the pipeline and shortly after we create a new one with the new updated parameters using gst_parse_launch() again.
This approach works fine for a while but then suddenly (probably after the 32nd unref and gst_parse_launch()) Gstreamer crashes with the following error:
"vdec 30210000.video-codec: Too many simultaneous instances: 32 (max: 32)"
I saw the same error message in this thread here: AM62A7: Seeking Guidance on Proper Resource Release for Saving CSI Frame as MP4 File - Processors forum - Processors - TI E2E support forums but did not find a solution.
Is there something i can do to fix this issue by properly releasing resources? Do i need to call another function?
Any advice would be very appreciated.