BaseSink and "Subbuffer clipping"

Benjamin M. Schwartz bmschwar at fas.harvard.edu
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?

Thanks,
Ben

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

[1]
http://git.pitivi.org/?p=pitivi.git;a=blob;f=pitivi/elements/arraysink.py;hb=HEAD

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110628/2d945542/attachment.pgp>


More information about the gstreamer-devel mailing list