Allocating a GstBuffer of type "memory:NVMM"

Hi,
We apply the change to the sample and don’t observe the segment fault.

gst_element_set_state((GstElement*)gst_pipeline, GST_STATE_PLAYING);
    sleep(5);
    GstFlowReturn ret;
    g_print("signal force-IDR \n");
    g_signal_emit_by_name (G_OBJECT(encoder), "force-IDR", NULL, &ret);
    //g_print("Change bit rate to 4Mbps \n");
    //g_object_set (G_OBJECT(encoder), "bitrate", 4000000, NULL);
    sleep(10);

Please check if it helps by cleaning the cache:

$ rm .cache/gstreamer-1.0/registry.aarch64.bin