gstsample: new API
authorMathieu Duponchelle <mathieu@centricular.com>
Tue, 10 Apr 2018 22:49:02 +0000 (00:49 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Fri, 13 Apr 2018 21:44:54 +0000 (23:44 +0200)
commited5d888ba5ffcaa9561e60c6b237bcf4a9ca3853
treeaa161dd51e1288bf954cd51e7b8e23a1a09cc97a
parent636d6ac37dcbea141e98a56378f0ca1e1b220105
gstsample: new API

gst_sample_set_buffer
gst_sample_set_caps
gst_sample_set_segment
gst_sample_set_info
gst_sample_is_writable
gst_sample_make_writable

This commit makes it possible to reuse a sample object and avoid
unnecessary memory allocations, for example in appsink.

In addition, writability is now required to set the buffer list.

https://bugzilla.gnome.org/show_bug.cgi?id=795144
docs/gst/gstreamer-sections.txt
gst/gstsample.c
gst/gstsample.h
win32/common/libgstreamer.def