diff --git a/Gir_Gst.toml b/Gir_Gst.toml index e5485eaf9..63bdab883 100644 --- a/Gir_Gst.toml +++ b/Gir_Gst.toml @@ -84,6 +84,7 @@ conversion_type = "scalar" [[object]] name = "Gst.Bin" status = "generate" +trait_name = "GstBinExt" [[object.function]] name = "add" [object.function.return] diff --git a/README.md b/README.md index 8a32d78b9..9b27831ba 100644 --- a/README.md +++ b/README.md @@ -83,8 +83,13 @@ Homebrew only installs various plugins if explicitly enabled, so some extra ``` $ brew install gstreamer gst-plugins-base gst-plugins-good \ gst-plugins-bad gst-plugins-ugly gst-libav gst-rtsp-server \ +<<<<<<< HEAD --with-orc --with-libogg --with-opus --with-pango --with-theora \ --with-libvorbis --with-libvpx --enable-gtk3 +======= + --with-orc -with-libogg --with-opus --with-pango --with-theora \ + --with-libvorbis --with-libvpx +>>>>>>> Add libvpx to brew install ``` If you wish to install the gstreamer-player sub-crate, make sure the diff --git a/gstreamer/src/auto/bin.rs b/gstreamer/src/auto/bin.rs index b47c8c339..33643e4cb 100644 --- a/gstreamer/src/auto/bin.rs +++ b/gstreamer/src/auto/bin.rs @@ -47,7 +47,7 @@ impl Bin { unsafe impl Send for Bin {} unsafe impl Sync for Bin {} -pub trait BinExt { +pub trait GstBinExt { fn add>(&self, element: &P) -> Result<(), glib::error::BoolError>; //fn add_many>(&self, element_1: &P, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs); @@ -111,7 +111,7 @@ pub trait BinExt { fn connect_property_message_forward_notify(&self, f: F) -> SignalHandlerId; } -impl + IsA> BinExt for O { +impl + IsA> GstBinExt for O { fn add>(&self, element: &P) -> Result<(), glib::error::BoolError> { unsafe { glib::error::BoolError::from_glib(ffi::gst_bin_add(self.to_glib_none().0, element.to_glib_none().0), "Failed to add element") diff --git a/gstreamer/src/auto/mod.rs b/gstreamer/src/auto/mod.rs index 300966aa3..bf5bc3d02 100644 --- a/gstreamer/src/auto/mod.rs +++ b/gstreamer/src/auto/mod.rs @@ -4,7 +4,7 @@ mod bin; pub use self::bin::Bin; -pub use self::bin::BinExt; +pub use self::bin::GstBinExt; mod buffer_pool; pub use self::buffer_pool::BufferPool; @@ -181,7 +181,7 @@ pub mod functions; #[doc(hidden)] pub mod traits { - pub use super::BinExt; + pub use super::GstBinExt; pub use super::BufferPoolExt; pub use super::ChildProxyExt; pub use super::ClockExt; diff --git a/gstreamer/src/bin.rs b/gstreamer/src/bin.rs index ab91c0793..0491ad1b3 100644 --- a/gstreamer/src/bin.rs +++ b/gstreamer/src/bin.rs @@ -15,7 +15,7 @@ use glib::IsA; use ffi; -pub trait BinExtManual { +pub trait GstBinExtManual { fn add_many>(&self, elements: &[&E]) -> Result<(), glib::BoolError>; fn remove_many>(&self, elements: &[&E]) -> Result<(), glib::BoolError>; @@ -28,7 +28,7 @@ pub trait BinExtManual { fn get_children(&self) -> Vec; } -impl> BinExtManual for O { +impl> GstBinExtManual for O { fn add_many>(&self, elements: &[&E]) -> Result<(), glib::BoolError> { for e in elements { unsafe { diff --git a/gstreamer/src/lib.rs b/gstreamer/src/lib.rs index 71ce94cb7..b98590c2b 100644 --- a/gstreamer/src/lib.rs +++ b/gstreamer/src/lib.rs @@ -176,7 +176,7 @@ mod pad; mod parse_context; mod proxy_pad; mod tag_setter; -pub use bin::BinExtManual; +pub use bin::GstBinExtManual; pub use element::{ElementExtManual, ElementMessageType, NotifyWatchId}; pub use element::{ ELEMENT_METADATA_AUTHOR, ELEMENT_METADATA_DESCRIPTION, ELEMENT_METADATA_DOC_URI, @@ -294,7 +294,7 @@ pub mod prelude { pub use meta::MetaAPI; - pub use bin::BinExtManual; + pub use bin::GstBinExtManual; pub use element::ElementExtManual; // OS dependent Bus extensions (also import the other plateform trait for doc)