pub trait DeviceImpl: DeviceImplExt + GstObjectImpl + Send + Sync {
// Provided methods
fn create_element(
&self,
name: Option<&str>,
) -> Result<Element, LoggableError> { ... }
fn reconfigure_element(
&self,
element: &Element,
) -> Result<(), LoggableError> { ... }
}
Provided Methods§
sourcefn create_element(&self, name: Option<&str>) -> Result<Element, LoggableError>
fn create_element(&self, name: Option<&str>) -> Result<Element, LoggableError>
sourcefn reconfigure_element(&self, element: &Element) -> Result<(), LoggableError>
fn reconfigure_element(&self, element: &Element) -> Result<(), LoggableError>
Tries to reconfigure an existing element to use the device. If this
function fails, then one must destroy the element and create a new one
using DeviceExt::create_element()
.
Note: This should only be implemented for elements can change their device in the PLAYING state.
§element
a Element
§Returns
true
if the element could be reconfigured to use this device,
false
otherwise.
Object Safety§
This trait is not object safe.