collectpads: add g-i transfer annotations to peek/pop/read_buffer/take_buffer functions

https://bugzilla.gnome.org/show_bug.cgi?id=768948
This commit is contained in:
Aurélien Zanelli 2016-07-19 14:45:53 +02:00 committed by Tim-Philipp Müller
parent 2f416348f6
commit 8ec2c56887

View file

@ -952,8 +952,8 @@ gst_collect_pads_stop (GstCollectPads * pads)
* *
* MT safe. * MT safe.
* *
* Returns: The buffer in @data or %NULL if no buffer is queued. * Returns: (transfer full) (nullable): The buffer in @data or %NULL if no
* should unref the buffer after usage. * buffer is queued. should unref the buffer after usage.
*/ */
GstBuffer * GstBuffer *
gst_collect_pads_peek (GstCollectPads * pads, GstCollectData * data) gst_collect_pads_peek (GstCollectPads * pads, GstCollectData * data)
@ -984,8 +984,8 @@ gst_collect_pads_peek (GstCollectPads * pads, GstCollectData * data)
* *
* MT safe. * MT safe.
* *
* Returns: (transfer full): The buffer in @data or %NULL if no buffer was * Returns: (transfer full) (nullable): The buffer in @data or %NULL if no
* queued. You should unref the buffer after usage. * buffer was queued. You should unref the buffer after usage.
*/ */
GstBuffer * GstBuffer *
gst_collect_pads_pop (GstCollectPads * pads, GstCollectData * data) gst_collect_pads_pop (GstCollectPads * pads, GstCollectData * data)
@ -1151,9 +1151,9 @@ gst_collect_pads_flush (GstCollectPads * pads, GstCollectData * data,
* *
* MT safe. * MT safe.
* *
* Returns: (transfer full): A sub buffer. The size of the buffer can be less that requested. * Returns: (transfer full) (nullable): A sub buffer. The size of the buffer can
* A return of %NULL signals that the pad is end-of-stream. * be less that requested. A return of %NULL signals that the pad is
* Unref the buffer after use. * end-of-stream. Unref the buffer after use.
*/ */
GstBuffer * GstBuffer *
gst_collect_pads_read_buffer (GstCollectPads * pads, GstCollectData * data, gst_collect_pads_read_buffer (GstCollectPads * pads, GstCollectData * data,
@ -1191,9 +1191,9 @@ gst_collect_pads_read_buffer (GstCollectPads * pads, GstCollectData * data,
* *
* MT safe. * MT safe.
* *
* Returns: A sub buffer. The size of the buffer can be less that requested. * Returns: (transfer full) (nullable): A sub buffer. The size of the buffer can
* A return of %NULL signals that the pad is end-of-stream. * be less that requested. A return of %NULL signals that the pad is
* Unref the buffer after use. * end-of-stream. Unref the buffer after use.
*/ */
GstBuffer * GstBuffer *
gst_collect_pads_take_buffer (GstCollectPads * pads, GstCollectData * data, gst_collect_pads_take_buffer (GstCollectPads * pads, GstCollectData * data,