mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-06-26 10:00:36 +00:00
Compare commits
11 commits
Author | SHA1 | Date | |
---|---|---|---|
|
6c7e00e5f6 | ||
|
d2f47ee09e | ||
|
d25866d7c6 | ||
|
7ae687740d | ||
|
6b553c058f | ||
|
1a5d1b2071 | ||
|
91c2c58a65 | ||
|
292ab63558 | ||
|
fd54eea586 | ||
|
ffca043df3 | ||
|
1b153ee597 |
|
@ -1,16 +1,16 @@
|
|||
[package]
|
||||
name = "gst-plugin-audiofx"
|
||||
version = "0.1.0"
|
||||
version = "0.1.2"
|
||||
authors = ["Sebastian Dröge <sebastian@centricular.com>"]
|
||||
repository = "https://github.com/sdroege/gst-plugin-rs"
|
||||
license = "MIT/Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
gst-plugin = { path="../gst-plugin" }
|
||||
glib = { git = "https://github.com/gtk-rs/glib" }
|
||||
gstreamer = { git = "https://github.com/sdroege/gstreamer-rs", features = ["v1_10"] }
|
||||
gstreamer-base = { git = "https://github.com/sdroege/gstreamer-rs", features = ["v1_10"] }
|
||||
gstreamer-audio = { git = "https://github.com/sdroege/gstreamer-rs", features = ["v1_10"] }
|
||||
gst-plugin = { version = "0.1", path="../gst-plugin" }
|
||||
glib = "0.4"
|
||||
gstreamer = { version = "0.10", features = ["v1_10"] }
|
||||
gstreamer-base = { version = "0.10", features = ["v1_10"] }
|
||||
gstreamer-audio = { version = "0.10", features = ["v1_10"] }
|
||||
byte-slice-cast = "0.1"
|
||||
num-traits = "0.1"
|
||||
|
||||
|
|
|
@ -98,9 +98,9 @@ impl AudioEcho {
|
|||
fn new(_transform: &BaseTransform) -> Self {
|
||||
Self {
|
||||
cat: gst::DebugCategory::new(
|
||||
"rsaudiofx",
|
||||
"rsaudioecho",
|
||||
gst::DebugColorFlags::empty(),
|
||||
"Rust audiofx effect",
|
||||
"Rust audioecho effect",
|
||||
),
|
||||
settings: Mutex::new(Default::default()),
|
||||
state: Mutex::new(None),
|
||||
|
@ -180,7 +180,9 @@ impl ObjectImpl<BaseTransform> for AudioEcho {
|
|||
match *prop {
|
||||
Property::UInt64("max-delay", ..) => {
|
||||
let mut settings = self.settings.lock().unwrap();
|
||||
settings.max_delay = value.get().unwrap();
|
||||
if self.state.lock().unwrap().is_none() {
|
||||
settings.max_delay = value.get().unwrap();
|
||||
}
|
||||
}
|
||||
Property::UInt64("delay", ..) => {
|
||||
let mut settings = self.settings.lock().unwrap();
|
||||
|
@ -204,11 +206,7 @@ impl ObjectImpl<BaseTransform> for AudioEcho {
|
|||
match *prop {
|
||||
Property::UInt64("max-delay", ..) => {
|
||||
let settings = self.settings.lock().unwrap();
|
||||
if self.state.lock().unwrap().is_none() {
|
||||
Ok(settings.max_delay.to_value())
|
||||
} else {
|
||||
Err(())
|
||||
}
|
||||
Ok(settings.max_delay.to_value())
|
||||
}
|
||||
Property::UInt64("delay", ..) => {
|
||||
let settings = self.settings.lock().unwrap();
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
[package]
|
||||
name = "gst-plugin-file"
|
||||
version = "0.1.0"
|
||||
version = "0.1.2"
|
||||
authors = ["Sebastian Dröge <sebastian@centricular.com>"]
|
||||
repository = "https://github.com/sdroege/gst-plugin-rs"
|
||||
license = "MIT/Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
url = "1.1"
|
||||
gst-plugin = { path="../gst-plugin" }
|
||||
gst-plugin-simple = { path="../gst-plugin-simple" }
|
||||
gstreamer = { git = "https://github.com/sdroege/gstreamer-rs", features = ["v1_10"] }
|
||||
gst-plugin = { version = "0.1", path="../gst-plugin" }
|
||||
gst-plugin-simple = { path = "../gst-plugin-simple" }
|
||||
gstreamer = { version = "0.10", features = ["v1_10"] }
|
||||
|
||||
[lib]
|
||||
name = "gstrsfile"
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
[package]
|
||||
name = "gst-plugin-flv"
|
||||
version = "0.1.0"
|
||||
version = "0.1.2"
|
||||
authors = ["Sebastian Dröge <sebastian@centricular.com>"]
|
||||
repository = "https://github.com/sdroege/gst-plugin-rs"
|
||||
license = "MIT/Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
url = "1.1"
|
||||
gst-plugin = { path="../gst-plugin" }
|
||||
gst-plugin = { version = "0.1", path="../gst-plugin" }
|
||||
gst-plugin-simple = { path="../gst-plugin-simple" }
|
||||
gstreamer = { git = "https://github.com/sdroege/gstreamer-rs", features = ["v1_10"] }
|
||||
gstreamer = { version = "0.10", features = ["v1_10"] }
|
||||
num-rational = { version = "0.1", default-features = false, features = [] }
|
||||
nom = "3.0"
|
||||
flavors = {git = "https://github.com/rust-av/flavors.git"}
|
||||
flavors = { git = "https://github.com/rust-av/flavors.git" }
|
||||
muldiv = "0.1"
|
||||
|
||||
[lib]
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
[package]
|
||||
name = "gst-plugin-http"
|
||||
version = "0.1.0"
|
||||
version = "0.1.2"
|
||||
authors = ["Sebastian Dröge <sebastian@centricular.com>"]
|
||||
repository = "https://github.com/sdroege/gst-plugin-rs"
|
||||
license = "MIT/Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
url = "1.1"
|
||||
gst-plugin = { path="../gst-plugin" }
|
||||
gst-plugin = { version = "0.1", path="../gst-plugin" }
|
||||
gst-plugin-simple = { path="../gst-plugin-simple" }
|
||||
reqwest = "0.8"
|
||||
gstreamer = { git = "https://github.com/sdroege/gstreamer-rs", features = ["v1_10"] }
|
||||
gstreamer = { version = "0.10", features = ["v1_10"] }
|
||||
|
||||
[lib]
|
||||
name = "gstrshttp"
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
[package]
|
||||
name = "gst-plugin-simple"
|
||||
version = "0.1.0"
|
||||
version = "0.1.2"
|
||||
authors = ["Sebastian Dröge <sebastian@centricular.com>"]
|
||||
repository = "https://github.com/sdroege/gst-plugin-rs"
|
||||
license = "MIT/Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
url = "1.1"
|
||||
glib = { git = "https://github.com/gtk-rs/glib" }
|
||||
gst-plugin = { path="../gst-plugin" }
|
||||
gstreamer = { git = "https://github.com/sdroege/gstreamer-rs", features = ["v1_10"] }
|
||||
gstreamer-base = { git = "https://github.com/sdroege/gstreamer-rs", features = ["v1_10"] }
|
||||
glib = "0.4"
|
||||
gst-plugin = { version = "0.1", path="../gst-plugin" }
|
||||
gstreamer = { version = "0.10", features = ["v1_10"] }
|
||||
gstreamer-base = { version = "0.10", features = ["v1_10"] }
|
||||
|
||||
[lib]
|
||||
name = "gst_plugin_simple"
|
||||
|
|
|
@ -168,10 +168,7 @@ impl BaseSinkImpl<BaseSink> for Sink {
|
|||
}
|
||||
(None, _) => {
|
||||
gst_error!(self.cat, obj: sink, "No URI given");
|
||||
sink.post_error_message(&gst_error_msg!(
|
||||
gst::ResourceError::OpenRead,
|
||||
["No URI given"]
|
||||
));
|
||||
gst_element_error!(sink, gst::ResourceError::OpenRead, ["No URI given"]);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -187,10 +187,7 @@ impl BaseSrcImpl<BaseSrc> for Source {
|
|||
}
|
||||
(None, _) => {
|
||||
gst_error!(self.cat, obj: src, "No URI given");
|
||||
src.post_error_message(&gst_error_msg!(
|
||||
gst::ResourceError::OpenRead,
|
||||
["No URI given"]
|
||||
));
|
||||
gst_element_error!(src, gst::ResourceError::OpenRead, ["No URI given"]);
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
[package]
|
||||
name = "gst-plugin-togglerecord"
|
||||
version = "0.1.0"
|
||||
version = "0.1.2"
|
||||
authors = ["Sebastian Dröge <sebastian@centricular.com>"]
|
||||
license = "LGPL-2.1+"
|
||||
|
||||
[dependencies]
|
||||
glib = { git = "https://github.com/gtk-rs/glib" }
|
||||
gstreamer = { git = "https://github.com/sdroege/gstreamer-rs", features = ["v1_10"] }
|
||||
gstreamer-video = { git = "https://github.com/sdroege/gstreamer-rs", features = ["v1_10"] }
|
||||
gst-plugin = { path = "../gst-plugin" }
|
||||
gtk = { git = "https://github.com/gtk-rs/gtk", features = ["v3_6"], optional = true }
|
||||
gio = { git = "https://github.com/gtk-rs/gio", optional = true }
|
||||
glib = "0.4"
|
||||
gstreamer = { version = "0.10", features = ["v1_10"] }
|
||||
gstreamer-video = { version = "0.10", features = ["v1_10"] }
|
||||
gst-plugin = { version = "0.1", path = "../gst-plugin" }
|
||||
gtk = { version = "0.3", features = ["v3_6"], optional = true }
|
||||
gio = { version = "0.3", optional = true }
|
||||
send-cell = { version = "0.1", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
21
gst-plugin/CHANGELOG.md
Normal file
21
gst-plugin/CHANGELOG.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Changelog
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html),
|
||||
specifically the [variant used by Rust](http://doc.crates.io/manifest.html#the-version-field).
|
||||
|
||||
## [0.1.2] - 2018-01-03
|
||||
### Fixed
|
||||
- BaseTransform::transform_caps() caps parameter is not owned when chainging
|
||||
to the parent class' implementation either
|
||||
|
||||
## [0.1.1] - 2018-01-03
|
||||
### Fixed
|
||||
- BaseTransform::transform_caps() caps parameter is not owned
|
||||
|
||||
## [0.1.0] - 2017-12-22
|
||||
- Initial release of the `gst-plugin` crate.
|
||||
|
||||
[Unreleased]: https://github.com/sdroege/gstreamer-rs/compare/0.1.1...HEAD
|
||||
[0.1.0]: https://github.com/sdroege/gstreamer-rs/compare/0.1.0...0.1.1
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "gst-plugin"
|
||||
version = "0.1.0"
|
||||
version = "0.1.2"
|
||||
authors = ["Sebastian Dröge <sebastian@centricular.com>"]
|
||||
categories = ["multimedia"]
|
||||
description = "Infrastructure for writing GStreamer plugins in Rust"
|
||||
|
@ -8,20 +8,20 @@ repository = "https://github.com/sdroege/gst-plugin-rs/gst-plugin"
|
|||
license = "MIT/Apache-2.0"
|
||||
readme = "README.md"
|
||||
homepage = "https://gstreamer.freedesktop.org"
|
||||
documentation = "https://sdroege.github.io/rustdoc/gst-plugin/gst_plugin_rs"
|
||||
documentation = "https://sdroege.github.io/rustdoc/gst-plugin/gst_plugin/"
|
||||
keywords = ["gstreamer", "multimedia", "audio", "video", "gnome"]
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
lazy_static = "1.0"
|
||||
byteorder = "1.0"
|
||||
glib-sys = { git = "https://github.com/gtk-rs/sys" }
|
||||
gobject-sys = { git = "https://github.com/gtk-rs/sys" }
|
||||
gstreamer-sys = { git = "https://github.com/sdroege/gstreamer-sys", features = ["v1_10"] }
|
||||
gstreamer-base-sys = { git = "https://github.com/sdroege/gstreamer-sys", features = ["v1_10"] }
|
||||
glib = { git = "https://github.com/gtk-rs/glib" }
|
||||
gstreamer = { git = "https://github.com/sdroege/gstreamer-rs", features = ["v1_10"] }
|
||||
gstreamer-base = { git = "https://github.com/sdroege/gstreamer-rs" }
|
||||
glib-sys = "0.5"
|
||||
gobject-sys = "0.5"
|
||||
gstreamer-sys = { version = "0.4", features = ["v1_10"] }
|
||||
gstreamer-base-sys = { version = "0.4", features = ["v1_10"] }
|
||||
glib = "0.4"
|
||||
gstreamer = { version = "0.10", features = ["v1_10"] }
|
||||
gstreamer-base = { version = "0.10" }
|
||||
|
||||
[lib]
|
||||
name = "gst_plugin"
|
||||
|
|
|
@ -121,7 +121,7 @@ pub unsafe trait BaseTransformBase
|
|||
Some(f) => from_glib_full(f(
|
||||
self.to_glib_none().0,
|
||||
direction.to_glib(),
|
||||
caps.into_ptr(),
|
||||
caps.to_glib_none().0,
|
||||
filter.to_glib_none().0,
|
||||
)),
|
||||
None => caps,
|
||||
|
@ -471,7 +471,8 @@ where
|
|||
imp.transform_caps(
|
||||
&wrap,
|
||||
from_glib(direction),
|
||||
from_glib_full(caps),
|
||||
// FIXME: Should be &from_glib_borrow()
|
||||
from_glib_none(caps),
|
||||
filter.as_ref(),
|
||||
)
|
||||
}).into_ptr()
|
||||
|
|
Loading…
Reference in a new issue