GNOME Bugzilla – Bug 431940
[API] add gst_buffer_try_new_and_alloc()
Last modified: 2007-04-26 10:01:28 UTC
We should have a gst_buffer_try_new_and_alloc(), so we can at least try to error out gracefully if there isn't enough memory available, or if an untrusted source fed us bogus sizes.
Created attachment 86729 [details] [review] patch adding gst_buffer_try_new_and_alloc() with unit test
Committed: 2007-04-26 Tim-Philipp Müller <tim at centricular dot net> * docs/gst/gstreamer-sections.txt: * gst/gstbuffer.c: (gst_buffer_try_new_and_alloc): * gst/gstbuffer.h: * tests/check/gst/gstbuffer.c: (GST_START_TEST), (gst_buffer_suite): API: add gst_buffer_try_new_and_alloc() plus unit test (#431940).