mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-10-31 22:59:14 +00:00
Add missing assert_initialized_main_thread macro and use macros from glib
This commit is contained in:
parent
bc1f125abd
commit
cfe76a5fde
1 changed files with 8 additions and 1 deletions
|
@ -15,9 +15,16 @@ extern crate gobject_sys as gobject_ffi;
|
|||
extern crate gstreamer_sys as gst_ffi;
|
||||
extern crate gstreamer_audio_sys as ffi;
|
||||
extern crate gstreamer as gst;
|
||||
|
||||
#[macro_use]
|
||||
extern crate glib;
|
||||
|
||||
macro_rules! assert_initialized_main_thread {
|
||||
() => (
|
||||
use gst_ffi;
|
||||
assert_eq!(unsafe {gst_ffi::gst_is_initialized()}, ::glib_ffi::GTRUE)
|
||||
)
|
||||
}
|
||||
|
||||
macro_rules! skip_assert_initialized {
|
||||
() => (
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue