summaryrefslogtreecommitdiff
path: root/girs
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2023-04-22 04:27:54 +0900
committerSeungha Yang <seungha@centricular.com>2023-04-28 04:38:30 +0900
commitfafecf9cb363a4579631bfbf01f24954579ab2f5 (patch)
tree6ed3d1e9050e58ec66e3784fd754cd331c1c81e5 /girs
parentb7083ad2421aab4ca3996eccd689eec6dce100f1 (diff)
downloadgstreamer-fafecf9cb363a4579631bfbf01f24954579ab2f5.tar.gz
sample: Add gst_clear_sample() method
Similar to other GstMiniObject clear helper methods like gst_clear_buffer(). Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4473>
Diffstat (limited to 'girs')
-rw-r--r--girs/Gst-1.0.gir22
1 files changed, 20 insertions, 2 deletions
diff --git a/girs/Gst-1.0.gir b/girs/Gst-1.0.gir
index effa21f91c..f57e64376e 100644
--- a/girs/Gst-1.0.gir
+++ b/girs/Gst-1.0.gir
@@ -38632,11 +38632,11 @@ Free-function: gst_sample_unref</doc>
copy of the data the source sample contains.</doc>
<source-position filename="../subprojects/gstreamer/gst/gstsample.h"/>
<return-value transfer-ownership="full">
- <doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstsample.c">a new copy of @buf.</doc>
+ <doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstsample.c">a new copy of @sample.</doc>
<type name="Sample" c:type="GstSample*"/>
</return-value>
<parameters>
- <instance-parameter name="buf" transfer-ownership="none">
+ <instance-parameter name="sample" transfer-ownership="none">
<doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstsample.c">a #GstSample.</doc>
<type name="Sample" c:type="const GstSample*"/>
</instance-parameter>
@@ -49789,6 +49789,24 @@ reference count of the query is decreased and the pointer is set to %NULL.</doc>
</parameter>
</parameters>
</function>
+ <function name="clear_sample" c:identifier="gst_clear_sample" version="1.24" introspectable="0">
+ <doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstsample.c">Clears a reference to a #GstSample
+
+@sample_ptr must not be %NULL.
+
+If the reference is %NULL then this function does nothing. Otherwise, the
+reference count of the sample is decreased and the pointer is set to %NULL.</doc>
+ <source-position filename="../subprojects/gstreamer/gst/gstsample.h"/>
+ <return-value transfer-ownership="none">
+ <type name="none" c:type="void"/>
+ </return-value>
+ <parameters>
+ <parameter name="sample_ptr" transfer-ownership="none">
+ <doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gstsample.c">a pointer to a #GstSample reference</doc>
+ <type name="Sample" c:type="GstSample**"/>
+ </parameter>
+ </parameters>
+ </function>
<function name="clear_structure" c:identifier="gst_clear_structure" version="1.16" introspectable="0">
<doc xml:space="preserve" filename="../subprojects/gstreamer/gst/gststructure.c">Clears a reference to a #GstStructure.