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
parent 10bc09ba82
commit cb362e6fbc
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],
});
pub fn plugin_register_static() -> Result<(), glib::BoolError> {
pub fn plugin_register_static() -> Result<(), $crate::glib::BoolError> {
unsafe {
$crate::glib::glib_result_from_gboolean!(
$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],
});
pub fn plugin_register_static() -> Result<(), glib::BoolError> {
pub fn plugin_register_static() -> Result<(), $crate::glib::BoolError> {
unsafe {
$crate::glib::glib_result_from_gboolean!(
$crate::gst_sys::gst_plugin_register_static(