gstreamer: plugin: Prefix glib:: with $crate:: in gst_plugin_define

Crates using gst_plugin_define might not (need to) import `glib`
directly into their scope; use the one imported in `gstreamer`s root
to make this macro more portable.
Besides, `glib` is prefixed with `$crate::` just below.
This commit is contained in:
Marijn Suijten 2020-08-29 16:55:06 +02:00 committed by Sebastian Dröge
parent 787954eab9
commit e6a0063165
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ macro_rules! gst_plugin_define(
_gst_reserved: [0 as $crate::glib_sys::gpointer; 4], _gst_reserved: [0 as $crate::glib_sys::gpointer; 4],
}); });
pub fn plugin_register_static() -> Result<(), glib::BoolError> { pub fn plugin_register_static() -> Result<(), $crate::glib::BoolError> {
unsafe { unsafe {
$crate::glib::glib_result_from_gboolean!( $crate::glib::glib_result_from_gboolean!(
$crate::gst_sys::gst_plugin_register_static( $crate::gst_sys::gst_plugin_register_static(

View file

@ -43,7 +43,7 @@ macro_rules! gst_plugin_define(
_gst_reserved: [0 as $crate::glib_sys::gpointer; 4], _gst_reserved: [0 as $crate::glib_sys::gpointer; 4],
}); });
pub fn plugin_register_static() -> Result<(), glib::BoolError> { pub fn plugin_register_static() -> Result<(), $crate::glib::BoolError> {
unsafe { unsafe {
$crate::glib::glib_result_from_gboolean!( $crate::glib::glib_result_from_gboolean!(
$crate::gst_sys::gst_plugin_register_static( $crate::gst_sys::gst_plugin_register_static(