After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 431940 - [API] add gst_buffer_try_new_and_alloc()
[API] add gst_buffer_try_new_and_alloc()
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal enhancement
: 0.10.13
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-04-21 10:04 UTC by Tim-Philipp Müller
Modified: 2007-04-26 10:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch adding gst_buffer_try_new_and_alloc() with unit test (5.51 KB, patch)
2007-04-21 10:05 UTC, Tim-Philipp Müller
committed Details | Review

Description Tim-Philipp Müller 2007-04-21 10:04:21 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.
Comment 1 Tim-Philipp Müller 2007-04-21 10:05:19 UTC
Created attachment 86729 [details] [review]
patch adding gst_buffer_try_new_and_alloc() with unit test
Comment 2 Tim-Philipp Müller 2007-04-26 10:01:28 UTC
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).