100% cpu usage of gst_element_factory_make for rtspsrc with multiple processes
When I run multiple processes, the cpu usage is 100% for long time since 1.22.
This is a sample code I wrote.
#include <gst/gst.h>
int main(int argc, char* argv[])
{
GstElement* pipeline;
GstElement* src;
GMainLoop* loop;
gst_init(&argc, &argv);
loop = g_main_loop_new(NULL, FALSE);
pipeline = gst_pipeline_new("minimum sample pipeline");
src = gst_element_factory_make("rtspsrc", "rtspsrc0");
g_main_loop_run(loop);
g_main_loop_unref(loop);
gst_object_unref(pipeline);
return 0;
}
When I run multiple processes of this application with the batch file, the cpu usage is 100% for a long time, and decrease. If I run 60 processes, the cpu remains 100% about 15 seconds. The time cpu remains 100% increases depending on the number of processes.
The main issue is from src = gst_element_factory_make("rtspsrc", "rtspsrc0");
When I comment out the line or change the element from "rtspsrc" to other element, the cpu is fine.
This issue didn't happen until 1.20.