mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-25 11:30:29 +00:00
e729324cce
The biggest changes are - Many functions are not asynchronous anymore as it would be difficult to run them correctly with our mix of synchronous C code and Rust code. - The pad context and its corresponding custom event are gone and instead thread local storage and task local storage are used. This makes it easier to correctly pass it through the different layers of Rust and C code and back. - Sink events have a different function for serialized and oob events, src events are handled correctly by default now by simply forwarding them. - Task::prepare() has a separate variant that takes a preparation function as this is a very common task. - The task loop function can signal via its return value if it wants to be called again or not.
53 lines
2 KiB
TOML
53 lines
2 KiB
TOML
[package]
|
|
name = "gst-plugin-threadshare"
|
|
version = "0.6.0"
|
|
authors = ["Sebastian Dröge <sebastian@centricular.com>"]
|
|
license = "LGPL-2.1+"
|
|
description = "Threadshare Plugin"
|
|
repository = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs"
|
|
edition = "2018"
|
|
|
|
[dependencies]
|
|
libc = "0.2"
|
|
glib-sys = { git = "https://github.com/gtk-rs/sys" }
|
|
gobject-sys = { git = "https://github.com/gtk-rs/sys" }
|
|
gio-sys = { git = "https://github.com/gtk-rs/sys" }
|
|
glib = { git = "https://github.com/gtk-rs/glib" }
|
|
gio = { git = "https://github.com/gtk-rs/gio" }
|
|
gst = { package = "gstreamer", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features=["v1_10"] }
|
|
gst-app = { package = "gstreamer-app", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
|
|
gst-check = { package = "gstreamer-check", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
|
|
gst-net = { package = "gstreamer-net", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
|
|
gst-rtp = { package = "gstreamer-rtp", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs" }
|
|
gstreamer-sys = { git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs-sys" }
|
|
pin-project = "0.4"
|
|
tokio = { git = "https://github.com/fengalin/tokio", tag = "tokio-0.2.12-throttling", features = ["io-util", "macros", "rt-core", "sync", "stream", "time", "tcp", "udp", "rt-util"] }
|
|
futures = "0.3"
|
|
lazy_static = "1.0"
|
|
rand = "0.7"
|
|
net2 = "0.2"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
winapi = { version = "0.3", features = ["winsock2", "processthreadsapi"] }
|
|
|
|
[lib]
|
|
name = "gstthreadshare"
|
|
crate-type = ["cdylib", "rlib"]
|
|
path = "src/lib.rs"
|
|
|
|
[[example]]
|
|
name = "benchmark"
|
|
path = "examples/benchmark.rs"
|
|
|
|
[[example]]
|
|
name = "udpsrc-benchmark-sender"
|
|
path = "examples/udpsrc_benchmark_sender.rs"
|
|
|
|
[[example]]
|
|
name = "tcpclientsrc-benchmark-sender"
|
|
path = "examples/tcpclientsrc_benchmark_sender.rs"
|
|
|
|
[build-dependencies]
|
|
gst-plugin-version-helper = { path="../gst-plugin-version-helper" }
|
|
cc = "1.0.38"
|
|
pkg-config = "0.3.15"
|