mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-09-28 23:02:16 +00:00
elementfactory: ElementFactory::create_with_properties() is available in any GStreamer version
As it's re-implemented here now instead of calling into the C function.
This commit is contained in:
parent
9c282ec7c3
commit
7ad75d4b1f
1 changed files with 0 additions and 6 deletions
|
@ -8,19 +8,15 @@ use crate::ELEMENT_METADATA_KLASS;
|
||||||
use crate::ELEMENT_METADATA_LONGNAME;
|
use crate::ELEMENT_METADATA_LONGNAME;
|
||||||
use std::ffi::CStr;
|
use std::ffi::CStr;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
||||||
use crate::Element;
|
use crate::Element;
|
||||||
use crate::ElementFactory;
|
use crate::ElementFactory;
|
||||||
use crate::Rank;
|
use crate::Rank;
|
||||||
use crate::StaticPadTemplate;
|
use crate::StaticPadTemplate;
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
||||||
use glib::prelude::*;
|
use glib::prelude::*;
|
||||||
use glib::translate::*;
|
use glib::translate::*;
|
||||||
|
|
||||||
impl ElementFactory {
|
impl ElementFactory {
|
||||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
||||||
#[doc(alias = "gst_element_factory_create_with_properties")]
|
#[doc(alias = "gst_element_factory_create_with_properties")]
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
pub fn create_with_properties(
|
pub fn create_with_properties(
|
||||||
|
@ -89,8 +85,6 @@ impl ElementFactory {
|
||||||
Ok(element)
|
Ok(element)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_20", feature = "dox"))]
|
|
||||||
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_20")))]
|
|
||||||
#[doc(alias = "gst_element_factory_make_with_properties")]
|
#[doc(alias = "gst_element_factory_make_with_properties")]
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
pub fn make_with_properties(
|
pub fn make_with_properties(
|
||||||
|
|
Loading…
Reference in a new issue