This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cmem issue after create/destroy several gstreamer pipeline

Hello I have an issue with cmem when I create and destroy a pipeline several time.

 

When EOF is received I destroy the pipe

 

    gst_element_set_state(pipeline, GST_STATE_NULL);
    gst_object_unref(GST_OBJECT (pipeline));

    g_main_loop_unref(loop);

 

 

and create a new one.

But after several time I have:

 

CMEMK Error: Failed to find a pool which fits 99840
CMEM Error: getPool: Failed to get a pool fitting a size 99840
Failed to allocate memory.
Error: encode thread failed to create circbuf or display buffer handles

 

It seems that previous pools are not unref.

what's the best approach to "release" all the pools before start a new pipeline?

 

Thanks in advance

Claudio