Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2018-11-05 14:43:11 +0300
committerSebastian Dröge <sebastian@centricular.com>2018-11-05 14:43:11 +0300
commit6c32b702f0cac5d5987b7ccf511a13ff50aaa9df (patch)
treeadb177599831fc381253e81dfea8927c80393159
parent20bec35c68176a46b8ff4f8b02cb24e6c72c1c01 (diff)
Fix build with gst-plugin-rs API changes
-rw-r--r--gst-plugin-threadshare/src/appsrc.rs4
-rw-r--r--gst-plugin-threadshare/src/lib.rs17
-rw-r--r--gst-plugin-threadshare/src/proxy.rs6
-rw-r--r--gst-plugin-threadshare/src/queue.rs4
-rw-r--r--gst-plugin-threadshare/src/tcpclientsrc.rs4
-rw-r--r--gst-plugin-threadshare/src/udpsrc.rs4
6 files changed, 20 insertions, 19 deletions
diff --git a/gst-plugin-threadshare/src/appsrc.rs b/gst-plugin-threadshare/src/appsrc.rs
index c479f65e3..0977cf3d7 100644
--- a/gst-plugin-threadshare/src/appsrc.rs
+++ b/gst-plugin-threadshare/src/appsrc.rs
@@ -666,7 +666,7 @@ impl ImplTypeStatic<Element> for AppSrcStatic {
}
}
-pub fn register(plugin: &gst::Plugin) {
+pub fn register(plugin: &gst::Plugin)-> Result<(), glib::BoolError> {
let type_ = register_type(AppSrcStatic);
- gst::Element::register(plugin, "ts-appsrc", 0, type_);
+ gst::Element::register(plugin, "ts-appsrc", 0, type_)
}
diff --git a/gst-plugin-threadshare/src/lib.rs b/gst-plugin-threadshare/src/lib.rs
index 7dac0f933..459421df7 100644
--- a/gst-plugin-threadshare/src/lib.rs
+++ b/gst-plugin-threadshare/src/lib.rs
@@ -54,13 +54,14 @@ mod dataqueue;
mod proxy;
mod queue;
-fn plugin_init(plugin: &gst::Plugin) -> bool {
- udpsrc::register(plugin);
- tcpclientsrc::register(plugin);
- queue::register(plugin);
- proxy::register(plugin);
- appsrc::register(plugin);
- true
+fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
+ udpsrc::register(plugin)?;
+ tcpclientsrc::register(plugin)?;
+ queue::register(plugin)?;
+ proxy::register(plugin)?;
+ appsrc::register(plugin)?;
+
+ Ok(())
}
plugin_define!(
@@ -71,7 +72,7 @@ plugin_define!(
b"LGPL\0",
b"threadshare\0",
b"threadshare\0",
- b"https://github.com/sdroege/gst-plugin-threadshare\0",
+ b"https://gitlab.freedesktop.org/gstreamer/gst-plugin-rs\0",
b"2018-03-01\0"
);
diff --git a/gst-plugin-threadshare/src/proxy.rs b/gst-plugin-threadshare/src/proxy.rs
index 098def060..7d3f8277a 100644
--- a/gst-plugin-threadshare/src/proxy.rs
+++ b/gst-plugin-threadshare/src/proxy.rs
@@ -1363,10 +1363,10 @@ impl ImplTypeStatic<Element> for ProxySrcStatic {
}
}
-pub fn register(plugin: &gst::Plugin) {
+pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
let type_ = register_type(ProxySinkStatic);
- gst::Element::register(plugin, "ts-proxysink", 0, type_);
+ gst::Element::register(plugin, "ts-proxysink", 0, type_)?;
let type_ = register_type(ProxySrcStatic);
- gst::Element::register(plugin, "ts-proxysrc", 0, type_);
+ gst::Element::register(plugin, "ts-proxysrc", 0, type_)
}
diff --git a/gst-plugin-threadshare/src/queue.rs b/gst-plugin-threadshare/src/queue.rs
index 707dadabd..8bbd65710 100644
--- a/gst-plugin-threadshare/src/queue.rs
+++ b/gst-plugin-threadshare/src/queue.rs
@@ -950,8 +950,8 @@ impl ImplTypeStatic<Element> for QueueStatic {
}
}
-pub fn register(plugin: &gst::Plugin) {
+pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
let queue_static = QueueStatic;
let type_ = register_type(queue_static);
- gst::Element::register(plugin, "ts-queue", 0, type_);
+ gst::Element::register(plugin, "ts-queue", 0, type_)
}
diff --git a/gst-plugin-threadshare/src/tcpclientsrc.rs b/gst-plugin-threadshare/src/tcpclientsrc.rs
index 68a41106e..254e85cd8 100644
--- a/gst-plugin-threadshare/src/tcpclientsrc.rs
+++ b/gst-plugin-threadshare/src/tcpclientsrc.rs
@@ -737,8 +737,8 @@ impl ImplTypeStatic<Element> for TcpClientSrcStatic {
}
}
-pub fn register(plugin: &gst::Plugin) {
+pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
let tcpclientsrc_static = TcpClientSrcStatic;
let type_ = register_type(tcpclientsrc_static);
- gst::Element::register(plugin, "ts-tcpclientsrc", 0, type_);
+ gst::Element::register(plugin, "ts-tcpclientsrc", 0, type_)
}
diff --git a/gst-plugin-threadshare/src/udpsrc.rs b/gst-plugin-threadshare/src/udpsrc.rs
index a7170a32d..5304e8a7f 100644
--- a/gst-plugin-threadshare/src/udpsrc.rs
+++ b/gst-plugin-threadshare/src/udpsrc.rs
@@ -815,8 +815,8 @@ impl ImplTypeStatic<Element> for UdpSrcStatic {
}
}
-pub fn register(plugin: &gst::Plugin) {
+pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
let udpsrc_static = UdpSrcStatic;
let type_ = register_type(udpsrc_static);
- gst::Element::register(plugin, "ts-udpsrc", 0, type_);
+ gst::Element::register(plugin, "ts-udpsrc", 0, type_)
}