<html><head></head><body><div>On Tue, 2022-10-25 at 12:40 -0300, Rodrigo Santos via gstreamer-devel wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div><br></div><div>Thanks for your reply, indeed that change made my code to compile without any issues. <br></div><div><br></div><div>However, when I try to use my custom implementation it is not working as I'd expect. Here's my current code: <a href="https://pastebin.com/TnxvZUPT" target="_blank">CustomClock</a>. I'm using it as such: <br></div><div><br></div><div>let pipeline = Pipeline::new(Some("pipeline"));<br></div><div>pipeline.set_clock(Some(&clock)).expect("could not set pipeline clock");<br></div><div><br></div><div>You can assume clock is indeed an instance of my CustomClock. Because of the following lines<br></div></div></blockquote><div><br></div><div>Please provide a full testcase next time, more often than not the problem is in the lines that are not pasted :)</div><div>Here you're lucky though, the problem is that you're calling `pipeline.set_clock()`.</div><div>That is overridden again with the default clock selection algorithm once the pipeline reaches the playing state.</div><div><br></div><div>What you want is `pipeline.use_clock()` instead. Check the documentation for the details.</div><div><br></div><div><span><pre>-- <br></pre><div>Sebastian Dröge, Centricular Ltd · <a href="https://www.centricular.com">https://www.centricular.com</a></div></span></div></body></html>