fix element register due to gstreamer rs update

This commit is contained in:
o-reo 2019-04-23 16:17:29 +02:00
parent 6dc39b2dea
commit c1eecbc5c4
2 changed files with 2 additions and 2 deletions

View file

@ -544,5 +544,5 @@ impl BaseSrcImpl for NdiAudioSrc {
} }
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> { pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(plugin, "ndiaudiosrc", 0, NdiAudioSrc::get_type()) gst::Element::register(Some(plugin), "ndiaudiosrc", 0, NdiAudioSrc::get_type())
} }

View file

@ -533,5 +533,5 @@ impl BaseSrcImpl for NdiVideoSrc {
} }
pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> { pub fn register(plugin: &gst::Plugin) -> Result<(), glib::BoolError> {
gst::Element::register(plugin, "ndivideosrc", 0, NdiVideoSrc::get_type()) gst::Element::register(Some(plugin), "ndivideosrc", 0, NdiVideoSrc::get_type())
} }