GNOME Bugzilla – Bug 791204
aggregator: rename pad_{get,steal}_buffer() to pad_{peek,pop}_buffer()
Last modified: 2018-01-23 09:53:26 UTC
From bug #739010: I'm still very much inclined towards renaming gst_aggregator_pad_steal_buffer() -> gst_aggregator_pad_pop_buffer() gst_aggregator_pad_get_buffer() -> gst_aggregator_pad_peek_buffer() It is true that get/steal is used elsewhere, but in a slightly different context. I think pop/peek describe what is done functionality-wise much better and avoid confusion about the return value ownership, e.g. with GValue _get() will not return a ref whereas _steal() will but here both do return a ref.
+1
commit bce246f39f2093c2800d5034d54afa88b26908c2 Author: Tim-Philipp Müller <tim@centricular.com> Date: Tue Jan 23 08:56:34 2018 +0000 aggregator: rename _get_buffer() -> _peek_buffer() and _steal -> _pop https://bugzilla.gnome.org/show_bug.cgi?id=791204