mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-17 05:15:14 +00:00
Fix build with gst-plugin-rs API changes
This commit is contained in:
parent
20bec35c68
commit
6c32b702f0
6 changed files with 20 additions and 19 deletions
|
@ -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);
|
let type_ = register_type(AppSrcStatic);
|
||||||
gst::Element::register(plugin, "ts-appsrc", 0, type_);
|
gst::Element::register(plugin, "ts-appsrc", 0, type_)
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,13 +54,14 @@ mod dataqueue;
|
||||||
mod proxy;
|
mod proxy;
|
||||||
mod queue;
|
mod queue;
|
||||||
|
|
||||||
fn plugin_init(plugin: &gst::Plugin) -> bool {
|
fn plugin_init(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
|
||||||
udpsrc::register(plugin);
|
udpsrc::register(plugin)?;
|
||||||
tcpclientsrc::register(plugin);
|
tcpclientsrc::register(plugin)?;
|
||||||
queue::register(plugin);
|
queue::register(plugin)?;
|
||||||
proxy::register(plugin);
|
proxy::register(plugin)?;
|
||||||
appsrc::register(plugin);
|
appsrc::register(plugin)?;
|
||||||
true
|
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
plugin_define!(
|
plugin_define!(
|
||||||
|
@ -71,7 +72,7 @@ plugin_define!(
|
||||||
b"LGPL\0",
|
b"LGPL\0",
|
||||||
b"threadshare\0",
|
b"threadshare\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"
|
b"2018-03-01\0"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -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);
|
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);
|
let type_ = register_type(ProxySrcStatic);
|
||||||
gst::Element::register(plugin, "ts-proxysrc", 0, type_);
|
gst::Element::register(plugin, "ts-proxysrc", 0, type_)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 queue_static = QueueStatic;
|
||||||
let type_ = register_type(queue_static);
|
let type_ = register_type(queue_static);
|
||||||
gst::Element::register(plugin, "ts-queue", 0, type_);
|
gst::Element::register(plugin, "ts-queue", 0, type_)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 tcpclientsrc_static = TcpClientSrcStatic;
|
||||||
let type_ = register_type(tcpclientsrc_static);
|
let type_ = register_type(tcpclientsrc_static);
|
||||||
gst::Element::register(plugin, "ts-tcpclientsrc", 0, type_);
|
gst::Element::register(plugin, "ts-tcpclientsrc", 0, type_)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 udpsrc_static = UdpSrcStatic;
|
||||||
let type_ = register_type(udpsrc_static);
|
let type_ = register_type(udpsrc_static);
|
||||||
gst::Element::register(plugin, "ts-udpsrc", 0, type_);
|
gst::Element::register(plugin, "ts-udpsrc", 0, type_)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue