gst-plugins-rs/gst-plugin-threadshare/tests
François Laignel 116cf9bd3c threadshare/*src: rework pause/flush_start/flush_stop
This commit fixes several issues with the `Ts*Src` elements.

The pause functions used cancel_task which breaks the Task loop at await
points. For some elements, this implies making sure no item is being lost.
Moreover, cancelling the Task also cancels downstream processing, which
makes it difficult to ensure elements can handle all cases.

This commit reimplements Task::pause which allows completing the running
loop iteration before pausing the loop.

See https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/277#note_439529

In the Paused state, incoming items were rejected by TsAppSrc and DataQueue.

See https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/277#note_438455

- FlushStart must engage items rejection and cancel the Task.
- FlushStop must purge the internal stream & accept items again.

If the task was cancelled, `push_prelude` could set `need_initial_events`
to `true` when the events weren't actually pushed yet.

TsAppSrc used to renew its internal channel which could cause Buffer loss
when transitionning Playing -> Paused -> Playing.

See https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/issues/98
2020-03-21 18:46:03 +00:00
..
appsrc.rs threadshare/*src: rework pause/flush_start/flush_stop 2020-03-21 18:46:03 +00:00
inputselector.rs threadshare/inputselector: port to new API 2020-03-19 11:37:27 +02:00
jitterbuffer.rs ts-jitterbuffer: add dedicated functions for state transitions + tests 2020-01-23 19:10:21 +01:00
pad.rs threadshare/*src: rework pause/flush_start/flush_stop 2020-03-21 18:46:03 +00:00
pipeline.rs threadshare/*src: rework pause/flush_start/flush_stop 2020-03-21 18:46:03 +00:00
proxy.rs proxy: fix blocking upwards state change 2020-02-05 21:35:11 +01:00
queue.rs threadsharing: migrate to async/await and tokio 0.2.0-alpha.6 2019-12-19 20:44:00 +01:00
tcpclientsrc.rs Fix various new clippy warnings from 1.40 2019-12-22 11:35:01 +02:00
udpsink.rs threadshare: Initial version of a UDP sink 2020-03-15 12:38:20 +02:00
udpsrc.rs threadshare/udpsrc: Port udpsrc to new API 2020-03-15 13:17:26 +02:00