Linked list test src

Josh Doe josh at joshdoe.com
Tue Jul 3 19:19:11 PDT 2012


On Tue, Jul 3, 2012 at 12:44 PM, iron_guitarist1987
<jtrinidadperez at gmail.com> wrote:
> Anyone have any recommendations? Thanks.

Several issues, the primary one being that you aren't treating the
GstBuffer as an object; data is but one property of a buffer, you must
also specify size, timestamp, etc. You need to malloc or new the
struct and set it using GST_BUFFER_DATA and GST_BUFFER_MALLOCDATA, or
preferably use gst_pad_alloc_buffer which does all of this and can be
more efficient.

-Josh


More information about the gstreamer-devel mailing list