Add missing assert_initialized_main_thread macro and use macros from glib

This commit is contained in:
Sebastian Dröge 2017-08-10 01:33:13 +03:00
parent bc1f125abd
commit cfe76a5fde

View file

@ -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 {
() => ( () => (
) )