mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 19:11:06 +00:00
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:
parent
787954eab9
commit
e6a0063165
2 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue