gst_net: impl From<gstreamer::ClockTime> for gstreamer_net::gstreamer::ClockTime
I spent a lot of time on a weird error message today:
24 | net_clock: gst_net::NetClientClock::new(
| ---------------------------- required by a bound introduced by this call
...
28 | gst::ClockTime::ZERO,
| ^^^^^^^^^^^^^^^^^^^^ the trait `From<gstreamer::ClockTime>` is not implemented for `std::option::Option<gstreamer_net::gstreamer::ClockTime>`
To my surprise, the fix was that I needed to pass gst_net::gst::ClockTime::ZERO
not gst::ClockTime::ZERO
.
The gst_net::gst
is just the gstreamer
crate re-exported, right? This seems like an easy patch I'd love to help with if it is fixable. I am fairly new to rust and the gst code outside of C, but I'm guessing we should be able to impl the From<gstreamer::ClockTime>
for the re-exported gst_net::gst::ClockTime
in the gst_net
module?
If not, at the very least I could add a doc comment with an example to gst_net::NetClientClock::new
where I got tripped up.