Replying to myself to append some information to this request, I made it
work by using the g_object_set c interface the following code seam to
work, even though it give me a weird warning :
Glib::RefPtr<Gst::Element> source =
Gst::ElementFactory::create("multifilesrc", "source");
source->set_property("location",
std::string("../testes/chess/IMG_%4d.JPG"));
source->set_property("index", 3425);
source->set_property("num-buffers", 36);
Glib::RefPtr<Gst::Caps> caps =
Gst::Caps::from_string("image/jpeg,framerate=2/1");
g_object_set(source->gobj(), "caps", caps->gobj());