GstAdapter seek

Nicolas Dufresne nicolas at
Tue Oct 26 12:53:45 UTC 2021

Le lundi 25 octobre 2021 à 06:43 +0000, 杨 立明 via gstreamer-devel a écrit :
> Hi,all!
>      I want to add seek  function in the gstavdemux for  element avdemux_gif
> and gstadapter  manager the buffer  in the  avdemux_gif  pull mode,so what
> should i do for seek function in gstadapter ? Thank you !

I the seek position exist in your current available adapter data, then clip the
required amount of data and continue. If not, flush the adapter and pull the
data you need (in byte offset) from your source. If in push mode, convert the
time seek into byte seek and forward to your source (again flushing the

For non-flush seek, playback what is in your adapter first, and then operate the

>                    jih488

More information about the gstreamer-devel mailing list