summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2013-08-21 12:21:43 +0100
committerTim-Philipp Müller <tim@centricular.net>2013-08-26 13:29:58 +0100
commita4c7561b4c6db28c8fb69903c3900ff4228a8c68 (patch)
tree5fafc436eb8a846f9f8096589e9f6b4519ee3453
parentcf594b8ea0f0ecdaf89bc4e03476357448fb143d (diff)
docs: flesh out gst_sample_get_buffer() a little
https://bugzilla.gnome.org/show_bug.cgi?id=706478
-rw-r--r--gst/gstsample.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/gstsample.c b/gst/gstsample.c
index 947921e4b8..95e3cd8bb5 100644
--- a/gst/gstsample.c
+++ b/gst/gstsample.c
@@ -147,6 +147,8 @@ had_parent:
*
* Returns: (transfer none): the buffer of @sample or NULL when there
* is no buffer. The buffer remains valid as long as @sample is valid.
+ * If you need to hold on to it for longer than that, take a ref to
+ * the buffer with gst_buffer_ref().
*/
GstBuffer *
gst_sample_get_buffer (GstSample * sample)
@@ -164,6 +166,8 @@ gst_sample_get_buffer (GstSample * sample)
*
* Returns: (transfer none): the caps of @sample or NULL when there
* is no caps. The caps remain valid as long as @sample is valid.
+ * If you need to hold on to the caps for longer than that, take a ref to
+ * the caps with gst_caps_ref().
*/
GstCaps *
gst_sample_get_caps (GstSample * sample)