<div dir="auto">You can test this feature with gst-play-1.0, you can then look at code for example usage.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le sam. 22 août 2020 14 h 00, Mikel Pérez <<a href="mailto:io@mikelpr.com">io@mikelpr.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm very interested in instant rate change but I can't get it working<br>
this is my code:<br>
<br>
gst_element_seek(<br>
GST_ELEMENT(player->pipeline)<br>
, (double) player->speed<br>
, GST_FORMAT_UNDEFINED // also tried with GST_FORMAT_TIME here<br>
, GST_SEEK_FLAG_INSTANT_RATE_CHANGE<br>
, GST_SEEK_TYPE_NONE<br>
, GST_CLOCK_TIME_NONE<br>
, GST_SEEK_TYPE_NONE<br>
, GST_CLOCK_TIME_NONE<br>
);<br>
<br>
rate won't change. the previous way, doing a normal seek (with<br>
GST_FORMAT_TIME, GST_SEEK_TYPE_SET and GST_SEEK_FLAG_FLUSH |<br>
GST_SEEK_FLAG_ACCURATE) does work but I need instant as I'm<br>
implementing a pitch control<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>