forked from mirrors/gstreamer-rs
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_sys as gst_ffi;
|
||||||
extern crate gstreamer_audio_sys as ffi;
|
extern crate gstreamer_audio_sys as ffi;
|
||||||
extern crate gstreamer as gst;
|
extern crate gstreamer as gst;
|
||||||
|
#[macro_use]
|
||||||
extern crate glib;
|
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 {
|
macro_rules! skip_assert_initialized {
|
||||||
() => (
|
() => (
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue