using the new GST_SEEK_FLAG_INSTANT_RATE_CHANGE of 1.17-1.18

Mikel Pérez io at mikelpr.com
Sat Aug 22 16:54:35 UTC 2020


I'm very interested in instant rate change but I can't get it working
this is my code:

gst_element_seek(
  GST_ELEMENT(player->pipeline)
, (double) player->speed
, GST_FORMAT_UNDEFINED // also tried with GST_FORMAT_TIME here
, GST_SEEK_FLAG_INSTANT_RATE_CHANGE
, GST_SEEK_TYPE_NONE
, GST_CLOCK_TIME_NONE
, GST_SEEK_TYPE_NONE
, GST_CLOCK_TIME_NONE
);

rate won't change. the previous way, doing a normal seek (with
GST_FORMAT_TIME, GST_SEEK_TYPE_SET and GST_SEEK_FLAG_FLUSH |
GST_SEEK_FLAG_ACCURATE) does work but I need instant as I'm
implementing a pitch control


More information about the gstreamer-devel mailing list