gstreamer_mse/
media_source.rs

1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use glib::prelude::*;
4use glib::translate::IntoGlib;
5
6use crate::MediaSource;
7
8impl MediaSource {
9    pub fn set_position(&self, position: impl Into<Option<gst::ClockTime>>) {
10        ObjectExt::set_property(self, "position", position.into().into_glib())
11    }
12}