gst-plugins-rs/gst-plugin-threadshare
Mathieu Duponchelle c50aa09034 threadshare: fix latency query handlers
Returning 0 as the max latency in those sources is incorrect,
and may lead to sinks incorrectly complaining about insufficient
buffering elements.

Reproduce with:

gst-launch-1.0 ts-udpsrc port=50000 address=127.0.0.1 \
  caps="application/x-rtp, media=(string)audio, clock-rate=(int)8000, encoding-name=(string)PCMA, payload=(int)8" ! \
  rtppcmadepay ! alawdec ! autoaudiosink

gst-launch-1.0 audiotestsrc do-timestamp=true samplesperbuffer=400 ! \
  alawenc ! rtppcmapay max-ptime=50000000 min-ptime=50000000 ! \
  udpsink host=127.0.0.1 port=50000

Logs:

Not enough buffering available for  the processing deadline of 0:00:00.020000000,
add enough queues to buffer  0:00:00.020000000 additional data.
Shortening processing latency to 0:00:00.000000000.

This then causes glitches, there are many other ways for the problems
to manifest.
2020-01-23 15:36:22 +00:00
..
examples Fix various new clippy warnings from 1.40 2019-12-22 11:35:01 +02:00
src threadshare: fix latency query handlers 2020-01-23 15:36:22 +00:00
tests ts: fix FlushStart / FlushStop events handling 2020-01-16 00:44:45 +01:00
build.rs Move jitterbuffer to its own directory module 2019-12-21 10:45:43 +01:00
Cargo.toml ts: have block_on panic if running on a Context thread 2020-01-16 00:18:16 +01:00