*
* MT safe.
*
- * Returns: (transfer full): a #GstHarness, or %NULL if the harness could
+ * Returns: (transfer full) (nullable): a #GstHarness, or %NULL if the harness could
* not be created
*
* Since: 1.8
* gst_harness_add_element_full: (skip)
* @h: a #GstHarness
* @element: a #GstElement to add to the harness (transfer none)
- * @hsrc: (allow-none): a #GstStaticPadTemplate describing the harness srcpad.
+ * @hsrc: (nullable): a #GstStaticPadTemplate describing the harness srcpad.
* %NULL will not create a harness srcpad.
- * @element_sinkpad_name: (allow-none): a #gchar with the name of the element
+ * @element_sinkpad_name: (nullable): a #gchar with the name of the element
* sinkpad that is then linked to the harness srcpad. Can be a static or request
* or a sometimes pad that has been added. %NULL will not get/request a sinkpad
* from the element. (Like if the element is a src.)
- * @hsink: (allow-none): a #GstStaticPadTemplate describing the harness sinkpad.
+ * @hsink: (nullable): a #GstStaticPadTemplate describing the harness sinkpad.
* %NULL will not create a harness sinkpad.
- * @element_srcpad_name: (allow-none): a #gchar with the name of the element
+ * @element_srcpad_name: (nullable): a #gchar with the name of the element
* srcpad that is then linked to the harness sinkpad, similar to the
* @element_sinkpad_name.
*
/**
* gst_harness_new_full: (skip)
* @element: a #GstElement to attach the harness to (transfer none)
- * @hsrc: (allow-none): a #GstStaticPadTemplate describing the harness srcpad.
+ * @hsrc: (nullable): a #GstStaticPadTemplate describing the harness srcpad.
* %NULL will not create a harness srcpad.
- * @element_sinkpad_name: (allow-none): a #gchar with the name of the element
+ * @element_sinkpad_name: (nullable): a #gchar with the name of the element
* sinkpad that is then linked to the harness srcpad. Can be a static or request
* or a sometimes pad that has been added. %NULL will not get/request a sinkpad
* from the element. (Like if the element is a src.)
- * @hsink: (allow-none): a #GstStaticPadTemplate describing the harness sinkpad.
+ * @hsink: (nullable): a #GstStaticPadTemplate describing the harness sinkpad.
* %NULL will not create a harness sinkpad.
- * @element_srcpad_name: (allow-none): a #gchar with the name of the element
+ * @element_srcpad_name: (nullable): a #gchar with the name of the element
* srcpad that is then linked to the harness sinkpad, similar to the
* @element_sinkpad_name.
*
*
* MT safe.
*
- * Returns: (transfer full): a #GstHarness, or %NULL if the harness could
+ * Returns: (transfer full) (nullable): a #GstHarness, or %NULL if the harness could
* not be created
*
* Since: 1.6
/**
* gst_harness_new_with_element: (skip)
* @element: a #GstElement to attach the harness to (transfer none)
- * @element_sinkpad_name: (allow-none): a #gchar with the name of the element
+ * @element_sinkpad_name: (nullable): a #gchar with the name of the element
* sinkpad that is then linked to the harness srcpad. %NULL does not attach a
* sinkpad
- * @element_srcpad_name: (allow-none): a #gchar with the name of the element
+ * @element_srcpad_name: (nullable): a #gchar with the name of the element
* srcpad that is then linked to the harness sinkpad. %NULL does not attach a
* srcpad
*
*
* MT safe.
*
- * Returns: (transfer full): a #GstHarness, or %NULL if the harness could
+ * Returns: (transfer full) (nullable): a #GstHarness, or %NULL if the harness could
* not be created
*
* Since: 1.6
/**
* gst_harness_new_with_padnames: (skip)
* @element_name: a #gchar describing the #GstElement name
- * @element_sinkpad_name: (allow-none): a #gchar with the name of the element
+ * @element_sinkpad_name: (nullable): a #gchar with the name of the element
* sinkpad that is then linked to the harness srcpad. %NULL does not attach a
* sinkpad
- * @element_srcpad_name: (allow-none): a #gchar with the name of the element
+ * @element_srcpad_name: (nullable): a #gchar with the name of the element
* srcpad that is then linked to the harness sinkpad. %NULL does not attach a
* srcpad
*
*
* MT safe.
*
- * Returns: (transfer full): a #GstHarness, or %NULL if the harness could
+ * Returns: (transfer full) (nullable): a #GstHarness, or %NULL if the harness could
* not be created
*
* Since: 1.6
/**
* gst_harness_new_with_templates: (skip)
* @element_name: a #gchar describing the #GstElement name
- * @hsrc: (allow-none): a #GstStaticPadTemplate describing the harness srcpad.
+ * @hsrc: (nullable): a #GstStaticPadTemplate describing the harness srcpad.
* %NULL will not create a harness srcpad.
- * @hsink: (allow-none): a #GstStaticPadTemplate describing the harness sinkpad.
+ * @hsink: (nullable): a #GstStaticPadTemplate describing the harness sinkpad.
* %NULL will not create a harness sinkpad.
*
* Creates a new harness, like gst_harness_new_full(), except it
*
* MT safe.
*
- * Returns: (transfer full): a #GstHarness, or %NULL if the harness could
+ * Returns: (transfer full) (nullable): a #GstHarness, or %NULL if the harness could
* not be created
*
* Since: 1.6
*
* MT safe.
*
- * Returns: (transfer full): a #GstHarness, or %NULL if the harness could
+ * Returns: (transfer full) (nullable): a #GstHarness, or %NULL if the harness could
* not be created
*
* Since: 1.6
*
* MT safe.
*
- * Returns: (transfer full): a #GstHarness, or %NULL if the harness could
+ * Returns: (transfer full) (nullable): a #GstHarness, or %NULL if the harness could
* not be created
*
* Since: 1.6
*
* MT safe.
*
- * Returns: (transfer full): a #GstTestClock, or %NULL if the testclock is not
+ * Returns: (transfer full) (nullable): a #GstTestClock, or %NULL if the testclock is not
* present.
*
* Since: 1.6
*
* MT safe.
*
- * Returns: (transfer full): a #GstBuffer or %NULL if timed out.
+ * Returns: (transfer full) (nullable): a #GstBuffer or %NULL if timed out.
*
* Since: 1.6
*/
/**
* gst_harness_pull_until_eos:
* @h: a #GstHarness
- * @buf: (out) (transfer full): A #GstBuffer, or %NULL if EOS or timeout occures
+ * @buf: (out) (nullable) (transfer full): A #GstBuffer, or %NULL if EOS or timeout occures
* first.
*
* Pulls a #GstBuffer from the #GAsyncQueue on the #GstHarness sinkpad. The pull
*
* MT safe.
*
- * Returns: (transfer full): a #GstBuffer or %NULL if no buffers are present in the #GAsyncQueue
+ * Returns: (transfer full) (nullable): a #GstBuffer or %NULL if no buffers are present in the #GAsyncQueue
*
* Since: 1.6
*/
*
* MT safe.
*
- * Returns: (transfer full): a #GstBuffer or %NULL if timed out.
+ * Returns: (transfer full) (nullable): a #GstBuffer or %NULL if timed out.
*
* Since: 1.6
*/
/**
* gst_harness_push_event:
* @h: a #GstHarness
- * @event: a #GstEvent to push
+ * @event: (transfer full): a #GstEvent to push
*
* Pushes an #GstEvent on the #GstHarness srcpad.
*
*
* MT safe.
*
- * Returns: a #GstEvent or %NULL if timed out.
+ * Returns: (transfer full) (nullable): a #GstEvent or %NULL if timed out.
*
* Since: 1.6
*/
*
* MT safe.
*
- * Returns: a #GstEvent or %NULL if no buffers are present in the #GAsyncQueue
+ * Returns: (transfer full) (nullable): a #GstEvent or %NULL if no buffers are present in the #GAsyncQueue
*
* Since: 1.6
*/
/**
* gst_harness_push_upstream_event:
* @h: a #GstHarness
- * @event: a #GstEvent to push
+ * @event: (transfer full): a #GstEvent to push
*
* Pushes an #GstEvent on the #GstHarness sinkpad.
*
*
* MT safe.
*
- * Returns: a #GstEvent or %NULL if timed out.
+ * Returns: (transfer full) (nullable): a #GstEvent or %NULL if timed out.
*
* Since: 1.6
*/
*
* MT safe.
*
- * Returns: a #GstEvent or %NULL if no buffers are present in the #GAsyncQueue
+ * Returns: (transfer full) (nullable): a #GstEvent or %NULL if no buffers are present in the #GAsyncQueue
*
* Since: 1.6
*/
/**
* gst_harness_get_allocator:
* @h: a #GstHarness
- * @allocator: (out) (allow-none) (transfer none): the #GstAllocator used
- * @params: (out) (allow-none) (transfer full): the #GstAllocationParams of
+ * @allocator: (out) (optional) (nullable) (transfer none): the #GstAllocator used
+ * @params: (out) (optional): the #GstAllocationParams of
* @allocator
*
* Gets the @allocator and its @params that has been decided to use after an
/**
* gst_harness_set_propose_allocator:
* @h: a #GstHarness
- * @allocator: (allow-none) (transfer full): a #GstAllocator
- * @params: (allow-none) (transfer none): a #GstAllocationParams
+ * @allocator: (nullable) (transfer full): a #GstAllocator
+ * @params: (nullable) (transfer none): a #GstAllocationParams
*
* Sets the @allocator and @params to propose when receiving an allocation
* query.
* gst_harness_add_propose_allocation_meta:
* @h: a #GstHarness
* @api: a metadata API
- * @params: (allow-none) (transfer none): API specific parameters
+ * @params: (nullable) (transfer none): API specific parameters
*
* Add api with params as one of the supported metadata API to propose when
* receiving an allocation query.
*
* MT safe.
*
- * Returns: (transfer full) (allow-none): a #GstElement or %NULL if not found
+ * Returns: (transfer full) (nullable): a #GstElement or %NULL if not found
*
* Since: 1.6
*/
/**
* gst_harness_stress_custom_start: (skip)
* @h: a #GstHarness
- * @init: (allow-none): a #GFunc that is called initially and only once
+ * @init: (nullable): a #GFunc that is called initially and only once
* @callback: a #GFunc that is called as often as possible
* @data: a #gpointer with custom data to pass to the @callback function
* @sleep: a #gulong specifying how long to sleep in (microseconds) for