BaseSink and "Subbuffer clipping"

Benjamin M. Schwartz bmschwar at
Tue Jun 28 19:49:34 PDT 2011

Working on PiTiVi, I noticed some major inaccuracies related to seeking
with PiTiVi's ArraySink element [1].  Reading the BaseSink docs I encountered

Buffers that fall partially in the segment are rendered (and prerolled).
Subclasses should do any subbuffer clipping themselves when needed.

I suspect this may explain our seeking problems.  However, this phrase
("subbuffer clipping") does not appear anywhere else in Google, so I can't
tell quite what I'm supposed to do.

Can someone provide an example of correct "subbuffer clipping" with BaseSink?


P.S. An example in Python would be ideal, but any language would be helpful.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the gstreamer-devel mailing list