[Bug 730968] gst_pad_get_range nullability

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri May 30 01:10:23 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=730968
  GStreamer | documentation | unspecified

Tim-Philipp Müller <t.i.m> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEEDINFO
                 CC|                            |t.i.m at zen.co.uk

--- Comment #2 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2014-05-30 08:10:18 UTC ---
What sentences make it sound like NULL is a perfectly reasonable value for the
buffer argument?

I think there might be a misunderstanding. Passing NULL as buffer argument is
not allowed here, one must always pass an address to a GstBuffer * variable.
But that variable may contain a buffer or be NULL. If it's NULL a buffer will
be allocated and returned, if the variable is already set to a buffer, the
buffer will be filled with data.

For bindings the latter case should probably be ignored, but bindings will have
to init any such variable to NULL then, which I hope they all do anyway, but I
don't know if it can be expressed in form of annotations.

These functions will only be used by plugins and only very special kind of
plugins, so not so important really.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list