Open aldonogueira opened 7 years ago
GLib allows multiple mainloops with different main contexts. The only clean solution here would be to depend on glib, and this crate seems to be the one that is most actively developed: https://docs.rs/glib/0.1.2/glib/
This should be solved by using the bindings from https://github.com/sdroege/gstreamer-rs
Since I'm new to GStreamer, it took a while for me to understand that MainLoop is actually the glib main loop, the same one that is called by gtk-rs. It's clear when you read the code though. My project had both MainLoop::spawn() and gtk::main() and then all kinds of weird intermittent errors occurred. Something it's not expected when you are writing Rust code.
What could we do to avoid this kind of problem?