Sebastian Dröge
9ddcae4ed2
threadshare: Fix some clippy warnings
2020-03-15 13:40:45 +02:00
Sebastian Dröge
776708bee6
threadshare/jitterbuffer: Port jitterbuffer to new API and completely refactor
2020-03-15 13:17:59 +02:00
Mathieu Duponchelle
382b9f118c
threadshare: Initial version of a UDP sink
2020-03-15 12:38:20 +02:00
Mathieu Duponchelle
9e665ae807
ts-jitterbuffer: fix request-pt-map emission
...
When a new payload type is encountered, we first check whether
it matches the caps received as an event before emitting the
request-pt-map signal if not, which means we shouldn't consider
errors from the first call to parse_caps as fatal.
2020-03-04 17:30:01 +01:00
Mathieu Duponchelle
1bfa20a656
ts-jitterbuffer: reset on unprepare
...
.. and reset earliest_pts in reset()
2020-03-04 15:13:41 +01:00
François Laignel
e2add3f2c8
ts-jitterbuffer: add dedicated functions for state transitions + tests
...
fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/issues/95
2020-01-23 19:10:21 +01:00
Mathieu Duponchelle
decc1e2029
threadshare: make live sources return NoPreroll from PlayingToPaused
...
Not returning NoPreroll in that transition causes downstream sinks
to wait for preroll forever.
Reproduce with:
gst-launch-1.0 audiotestsrc ! udpsink host=127.0.0.1 port=50000
gst-launch-1.0 ts-udpsrc address=127.0.0.1 port=50000 ! fakesink
ctrl + C in the receiver pipeline -> hangs forever
2020-01-23 15:56:11 +01:00
Mathieu Duponchelle
0aa5b15564
jitterbuffer: return NoPreroll when going from READY to PAUSED
...
This is useful when upstream is not a live source
Fixes potential issue discussed in:
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/issues/93#note_388528
2020-01-21 22:14:33 +01:00
Mathieu Duponchelle
1823ca525e
jitterbuffer: don't try to lock in query handlers
...
Instead, add position and latency fields to the PadSrcHandler
Fixes #93
2020-01-21 22:14:06 +01:00
François Laignel
a15d60105b
ts: fix FlushStart / FlushStop events handling
2020-01-16 00:44:45 +01:00
François Laignel
3eed2f69d9
ts: have block_on panic if running on a Context thread
2020-01-16 00:18:16 +01:00
François Laignel
688357a474
Update jitterbuffer.rs + clippy pass
2019-12-21 10:58:14 +01:00
François Laignel
dfbc0d3975
Move jitterbuffer to its own directory module
2019-12-21 10:45:43 +01:00