Commit 400ea72b authored by Thiago Santos's avatar Thiago Santos
Browse files

pbutils: add some missing gi annotations

For allow-none parameters
parent fb77e4db
...@@ -609,7 +609,7 @@ gst_encoding_profile_get_restriction (GstEncodingProfile * profile) ...@@ -609,7 +609,7 @@ gst_encoding_profile_get_restriction (GstEncodingProfile * profile)
/** /**
* gst_encoding_profile_set_name: * gst_encoding_profile_set_name:
* @profile: a #GstEncodingProfile * @profile: a #GstEncodingProfile
* @name: the name to set on the profile * @name: (allow-none): the name to set on the profile
* *
* Set @name as the given name for the @profile. A copy of @name will be made * Set @name as the given name for the @profile. A copy of @name will be made
* internally. * internally.
...@@ -626,7 +626,7 @@ gst_encoding_profile_set_name (GstEncodingProfile * profile, const gchar * name) ...@@ -626,7 +626,7 @@ gst_encoding_profile_set_name (GstEncodingProfile * profile, const gchar * name)
/** /**
* gst_encoding_profile_set_description: * gst_encoding_profile_set_description:
* @profile: a #GstEncodingProfile * @profile: a #GstEncodingProfile
* @description: the description to set on the profile * @description: (allow-none): the description to set on the profile
* *
* Set @description as the given description for the @profile. A copy of * Set @description as the given description for the @profile. A copy of
* @description will be made internally. * @description will be made internally.
...@@ -713,7 +713,7 @@ gst_encoding_profile_set_preset (GstEncodingProfile * profile, ...@@ -713,7 +713,7 @@ gst_encoding_profile_set_preset (GstEncodingProfile * profile,
/** /**
* gst_encoding_profile_set_preset_name: * gst_encoding_profile_set_preset_name:
* @profile: a #GstEncodingProfile * @profile: a #GstEncodingProfile
* @preset_name: The name of the preset to use in this @profile. * @preset_name: (allow-none): The name of the preset to use in this @profile.
* *
* Sets the name of the #GstPreset's factory to be used in the profile. * Sets the name of the #GstPreset's factory to be used in the profile.
*/ */
...@@ -764,7 +764,7 @@ gst_encoding_profile_set_enabled (GstEncodingProfile * profile, ...@@ -764,7 +764,7 @@ gst_encoding_profile_set_enabled (GstEncodingProfile * profile,
/** /**
* gst_encoding_profile_set_restriction: * gst_encoding_profile_set_restriction:
* @profile: a #GstEncodingProfile * @profile: a #GstEncodingProfile
* @restriction: (transfer full): the restriction to apply * @restriction: (allow-none) (transfer full): the restriction to apply
* *
* Set the restriction #GstCaps to apply before the encoder * Set the restriction #GstCaps to apply before the encoder
* that will be used in the profile. See gst_encoding_profile_get_restriction() * that will be used in the profile. See gst_encoding_profile_get_restriction()
......
...@@ -696,7 +696,7 @@ empty_name: ...@@ -696,7 +696,7 @@ empty_name:
/** /**
* gst_encoding_target_load_from_file: * gst_encoding_target_load_from_file:
* @filepath: The file location to load the #GstEncodingTarget from * @filepath: (type filename): The file location to load the #GstEncodingTarget from
* @error: If an error occured, this field will be filled in. * @error: If an error occured, this field will be filled in.
* *
* Opens the provided file and returns the contained #GstEncodingTarget. * Opens the provided file and returns the contained #GstEncodingTarget.
...@@ -913,7 +913,7 @@ invalid_category: ...@@ -913,7 +913,7 @@ invalid_category:
/** /**
* gst_encoding_target_save_to_file: * gst_encoding_target_save_to_file:
* @target: a #GstEncodingTarget * @target: a #GstEncodingTarget
* @filepath: the location to store the @target at. * @filepath: (type filename): the location to store the @target at.
* @error: If an error occured, this field will be filled in. * @error: If an error occured, this field will be filled in.
* *
* Saves the @target to the provided file location. * Saves the @target to the provided file location.
......
...@@ -256,10 +256,11 @@ gst_discoverer_class_init (GstDiscovererClass * klass) ...@@ -256,10 +256,11 @@ gst_discoverer_class_init (GstDiscovererClass * klass)
* GstDiscoverer::discovered: * GstDiscoverer::discovered:
* @discoverer: the #GstDiscoverer * @discoverer: the #GstDiscoverer
* @info: the results #GstDiscovererInfo * @info: the results #GstDiscovererInfo
* @error: (type GLib.Error): #GError, which will be non-NULL if an error * @error: (allow-none) (type GLib.Error): #GError, which will be non-NULL
* occurred during discovery. You must not * if an error occurred during
* free this #GError, it will be freed by * discovery. You must not free
* the discoverer. * this #GError, it will be freed by
* the discoverer.
* *
* Will be emitted in async mode when all information on a URI could be * Will be emitted in async mode when all information on a URI could be
* discovered, or an error occurred. * discovered, or an error occurred.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment