gst/buffer: add a new function for wrapping GBytes
authorMatthew Waters <matthew@centricular.com>
Thu, 27 Sep 2018 09:13:35 +0000 (19:13 +1000)
committerMatthew Waters <matthew@centricular.com>
Tue, 6 Nov 2018 05:12:42 +0000 (16:12 +1100)
commitddfcc28c8b8f35f2adb6fab91e96786a63b8dadf
treec9ebf17197e378c8c3a2dd63b71fd7bcbdcaa5ab
parent874ad5faca23df7cc3d961bf52f2fe8935f2f45b
gst/buffer: add a new function for wrapping GBytes

One restriction on the GBytes is that the data cannot be NULL as this is
explicitly forbidden by GstMemory.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/318
docs/gst/gstreamer-sections.txt
gst/gstbuffer.c
gst/gstbuffer.h
tests/check/gst/gstbuffer.c