Skip to content

Instantly share code, notes, and snippets.

@yashi
Created December 9, 2015 14:30
Show Gist options
  • Save yashi/5f5f5f4cc04f2a5a8cf1 to your computer and use it in GitHub Desktop.
Save yashi/5f5f5f4cc04f2a5a8cf1 to your computer and use it in GitHub Desktop.
typedef struct
{
GstBuffer buffer;
gsize slice_size;
/* the memory blocks */
guint len;
GstMemory *mem[GST_BUFFER_MEM_MAX];
/* memory of the buffer when allocated from 1 chunk */
GstMemory *bufmem;
/* FIXME, make metadata allocation more efficient by using part of the
* GstBufferImpl */
GstMetaItem *item;
} GstBufferImpl;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment