116cf9bd3c
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 |
||
---|---|---|
gst-plugin-audiofx | ||
gst-plugin-cdg | ||
gst-plugin-claxon | ||
gst-plugin-closedcaption | ||
gst-plugin-dav1d | ||
gst-plugin-fallbackswitch | ||
gst-plugin-file | ||
gst-plugin-flv | ||
gst-plugin-gif | ||
gst-plugin-lewton | ||
gst-plugin-rav1e | ||
gst-plugin-reqwest | ||
gst-plugin-rusoto | ||
gst-plugin-sodium | ||
gst-plugin-threadshare | ||
gst-plugin-togglerecord | ||
gst-plugin-tutorial | ||
gst-plugin-version-helper | ||
.gitignore | ||
.gitlab-ci.yml | ||
Cargo.toml | ||
cargo_wrapper.py | ||
LICENSE-APACHE | ||
LICENSE-LGPLv2 | ||
LICENSE-MIT | ||
Makefile | ||
meson.build | ||
meson_options.txt | ||
README.md |
gst-plugins-rs
Repository containing various GStreamer plugins and elements written in the Rust programming language.
The plugins build upon the GStreamer Rust bindings. Check the README.md of that repository also for details about how to set-up your development environment.
LICENSE
gst-plugins-rs and all crates contained in here that are not listed below are licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
gst-plugin-togglerecord is licensed under the Lesser General Public License (LICENSE-LGPLv2) version 2.1 or (at your option) any later version.
GStreamer itself is licensed under the Lesser General Public License version 2.1 or (at your option) any later version: https://www.gnu.org/licenses/lgpl-2.1.html
Contribution
Any kinds of contributions are welcome as a pull request.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in gst-plugins-rs by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.