[Bug 785679] element: add gst_element_foreach_*pad()
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Thu Aug 3 19:41:52 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=785679
--- Comment #11 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
> + GST_OBJECT_LOCK (element);
> + n_pads = *p_npads;
> + pads = g_newa (GstPad *, n_pads + 1);
>
> why + 1 ?
Laziness, so we don't have to special-case/catch the n_pads=0 case inside the
lock: I don't know if we can expect g_newa() to always behave well for n=0 - do
you know if it's fine?
--
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