From b674a737b039ab01b5fec91554b959d68376126b Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Tue, 30 Oct 2012 10:04:44 +1100 Subject: [PATCH] collectpads: Clarify docs about the buffer handler callback. Clarify that the callback owns a ref on a passed buffer. --- libs/gst/base/gstcollectpads.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/gst/base/gstcollectpads.c b/libs/gst/base/gstcollectpads.c index 9c9b003..a4e0395 100644 --- a/libs/gst/base/gstcollectpads.c +++ b/libs/gst/base/gstcollectpads.c @@ -318,7 +318,9 @@ gst_collect_pads_set_buffer_function_locked (GstCollectPads * pads, * @user_data: (closure): user data passed to the function * * Set the callback function and user data that will be called with - * the oldest buffer when all pads have been collected. + * the oldest buffer when all pads have been collected, or NULL on EOS. + * If a buffer is passed, the callback owns a reference and must unref + * it. * * MT safe. */ -- 2.7.4