I've finally corrected this error by modifying the class_size and instance_size
// ginfo.class_size = (short)new BaseSrcAPI.GstBaseSrcClass().size();
// ginfo.instance_size = (short)new BaseSrcAPI.GstBaseSrcStruct().size();
ginfo.class_size = BaseSrcAPI.BASESRC_API.gst_base_src_get_type().shortValue();
ginfo.instance_size = BaseSrcAPI.BASESRC_API.gst_base_src_get_type().shortValue();
I don't really know if what I'm doing is right but now it go further...
But it fails on this error now :
WARNING: no real random source present!
0:00:05.221272057 3580 1751A800 ERROR basesrc gstbasesrc.c:3462:gst_base_src_start_complete:<input file> Failed to perform initial seek
you can see my pipeline construction here :
Element src = ElementFactory.make("filesrc", "filesrc");
src.set("location", fileName);
Bin decodeBin = (Bin)ElementFactory.make("decodebin", "Decode Bin");
Pipeline pipe = new Pipeline("main pipeline");
pipe.addMany(src, decodeBin);
src.link(decodeBin);
pipe.addMany(videoComponent);
decodeBin.link(videoComponent);
pipe.play();
Gst.main();
I've tested this pipeline with the command line "gst-launch-1.0.exe filesrc location=test.m4v ! decodebin ! autovideosink"
to be sure it can read my m4v file and it works fine.
But in java it result with the error "gst_base_src_start_complete:<input file> Failed to perform initial seek"
Do you know what's the problem ?