Port over to gstreamer-rs
Currently we have lots of handcrafted bindings for various GStreamer types or call FFI functions directly. This should be moved to using the proper bindings from gstreamer-rs.
Best approach here would probably be to first do (one after another) source.rs
, sink.rs
, demuxer.rs
and then get rid of everything in the other files.
Types like FlowReturn
would be wrapped in our custom FlowError
(omitting the Ok
case for Result<_,_>
). Whatever makes sense should become a wrapper around the gstreamer-rs types with additional functionality.
In the context of this, also see https://github.com/sdroege/gstreamer-rs/issues/3 which can be done before or after (in which case we would have a custom newtype for that here for the time being).