If I set the is-live property ( g_object_set (G_OBJECT (souphttpsource), "location", argv, "is-live", TRUE, NULL); ) then the decoder's latency is reduced, according to the lines above,
BUT some latency is added on the souphttpsrc element.
How can I avoid that?
For now, the only solution I have is to HACK the code of gstavviddec.c and force ffmpegdec->context->thread_type = FF_THREAD_SLICE also in the case that is-live == FALSE (with the consequence that I don't get latency neither on the souphttpsrc neither on the avdec_h264 element)
It seems to me something that should be fixed in the library, though...