gstreamer: Add support for implementing gst::TagSetter interface

This commit is contained in:
Sebastian Dröge 2019-09-25 16:13:07 +03:00
parent eda3539330
commit 74b05f0272
2 changed files with 25 additions and 0 deletions

View file

@ -32,6 +32,7 @@ pub mod device;
pub mod device_provider;
pub mod preset;
pub mod tag_setter;
pub mod uri_handler;
pub mod prelude {
@ -46,6 +47,7 @@ pub mod prelude {
pub use super::pad::{PadImpl, PadImplExt};
pub use super::pipeline::PipelineImpl;
pub use super::preset::PresetImpl;
pub use super::tag_setter::TagSetterImpl;
pub use super::uri_handler::URIHandlerImpl;
pub use super::PanicPoison;
pub use glib::subclass::prelude::*;

View file

@ -0,0 +1,23 @@
// Copyright (C) 2019 Sebastian Dröge <sebastian@centricular.com>
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use glib_sys;
use glib::subclass::prelude::*;
use TagSetter;
pub trait TagSetterImpl: super::element::ElementImpl + Send + Sync + 'static {}
unsafe impl<T: ObjectSubclass + TagSetterImpl> IsImplementable<T> for TagSetter {
unsafe extern "C" fn interface_init(
_iface: glib_sys::gpointer,
_iface_data: glib_sys::gpointer,
) {
}
}