feat: Update gst-plugin-version-helper dependency to v0.8.0

This change updates the gst-plugin-version-helper dependency to version
0.8.0. The new version brings enhancements and improvements to the
plugin, ensuring compatibility and optimizing functionality. This update
is necessary to improve the overall performance and stability of the
code.

No issue reference.
This commit is contained in:
Wanjohi
2023-12-13 17:56:54 +03:00
parent 5f42cb26c2
commit 10dbad917b
4 changed files with 53 additions and 8 deletions

16
gst-warp-sink/.gitignore vendored Normal file
View File

@@ -0,0 +1,16 @@
/target
/moq-transport/target
# Added by cargo
#
# already existing elements were commented out
#/target
/hls*
# Added by cargo
#
# already existing elements were commented out
#/target

View File

@@ -648,7 +648,7 @@ version = "0.12.0-alpha.1"
source = "git+https://github.com/sdroege/gst-plugin-rs#c7f961cc2216f24e282ed81dbed9be7d29d5ecd0"
dependencies = [
"anyhow",
"gst-plugin-version-helper",
"gst-plugin-version-helper 0.8.0 (git+https://github.com/sdroege/gst-plugin-rs)",
"gstreamer",
"gstreamer-audio",
"gstreamer-base",
@@ -665,6 +665,15 @@ dependencies = [
"toml_edit 0.21.0",
]
[[package]]
name = "gst-plugin-version-helper"
version = "0.8.0"
source = "git+https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs#caa1451fe80852ea34917bc0bca1429d0e0f5f1b"
dependencies = [
"chrono",
"toml_edit 0.21.0",
]
[[package]]
name = "gstreamer"
version = "0.22.0"
@@ -1060,6 +1069,7 @@ dependencies = [
"bytes",
"chrono",
"gst-plugin-fmp4",
"gst-plugin-version-helper 0.8.0 (git+https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs)",
"gstreamer",
"gstreamer-app",
"gstreamer-base",

View File

@@ -22,3 +22,14 @@ isobmff = { git = "https://github.com/LMinJae/isobmff-rs", version = "0.1.0" }
bytes = "1.5.0"
mp4 = "0.14.0"
moq-transport = { git = "https://github.com/kixelated/moq-rs", version = "0.2.0" }
[lib]
name = "gstmoq"
crate-type = ["cdylib", "rlib"]
path = "src/lib.rs"
[dev-dependencies]
gst-plugin-version-helper = { git = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs" }
[build-dependencies]
gst-plugin-version-helper = { git = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs", version = "0.8.0" }

View File

@@ -329,6 +329,7 @@ impl MoqSink {
fn send_to_network(&self, buffer: gst::Buffer) -> Result<(), Box<dyn std::error::Error>> {
//Let this be our publisher
Ok(())
}
}
@@ -362,11 +363,17 @@ impl ObjectSubclass for MoqSink {
srcpad,
}
}
type Interfaces;
type Instance;
type Class;
}
impl ObjectImpl for MoqSink {
fn constructed(&self, obj: &Self::Type) {
self.parent_constructed(obj);
self.parent_constructed();
obj.add_pad(&self.srcpad).unwrap();
}
}
@@ -536,12 +543,13 @@ impl Sender {
.with_no_client_auth();
// Allow disabling TLS verification altogether.
if config.tls_disable_verify {
let noop = NoCertificateVerification {};
tls_config
.dangerous()
.set_certificate_verifier(Arc::new(noop));
}
// if config.tls_disable_verify {
// let noop = NoCertificateVerification {};
// tls_config
// .dangerous()
// .set_certificate_verifier(Arc::new(noop));
// }
Ok(())
}
async fn send_segment(