Fixing various typos

This commit is contained in:
Michael Bunk 2019-06-20 14:04:55 +02:00 committed by Sebastian Dröge
parent f321f42359
commit 4bc68bb3fe
5 changed files with 18 additions and 18 deletions

View file

@ -169,7 +169,7 @@ gst_memory_is_type (GstMemory * mem, const gchar * mem_type)
*
* Get the current @size, @offset and @maxsize of @mem.
*
* Returns: the current sizes of @mem
* Returns: the current size of @mem
*/
gsize
gst_memory_get_sizes (GstMemory * mem, gsize * offset, gsize * maxsize)

View file

@ -255,7 +255,7 @@ typedef gpointer (*GstMemoryMapFullFunction) (GstMemory *mem, GstMapInf
* GstMemoryUnmapFunction:
* @mem: a #GstMemory
*
* Return the pointer previously retrieved with gst_memory_map().
* Release the pointer previously retrieved with gst_memory_map().
*/
typedef void (*GstMemoryUnmapFunction) (GstMemory *mem);
@ -264,7 +264,7 @@ typedef void (*GstMemoryUnmapFunction) (GstMemory *mem);
* @mem: a #GstMemory
* @info: a #GstMapInfo
*
* Return the pointer previously retrieved with gst_memory_map() with @info.
* Release the pointer previously retrieved with gst_memory_map() with @info.
*/
typedef void (*GstMemoryUnmapFullFunction) (GstMemory *mem, GstMapInfo * info);
@ -338,7 +338,7 @@ gst_memory_ref (GstMemory * memory)
* gst_memory_unref: (skip)
* @memory: (transfer full): the memory to refcount
*
* Decrease the refcount of an memory, freeing it if the refcount reaches 0.
* Decrease the refcount of a memory, freeing it if the refcount reaches 0.
*/
static inline void gst_memory_unref(GstMemory* memory);
static inline void

View file

@ -3965,7 +3965,7 @@ gst_pad_create_stream_id_internal (GstPad * pad, GstElement * parent,
gst_object_unref (sinkpad);
}
/* The only case where we don't have an upstream start-start event
/* The only case where we don't have an upstream stream-start event
* here is for source elements */
if (!upstream_stream_id) {
GstQuery *query;

View file

@ -636,7 +636,7 @@ gst_base_transform_query_caps (GstBaseTransform * trans, GstPad * pad,
templ = gst_pad_get_pad_template_caps (pad);
otempl = gst_pad_get_pad_template_caps (otherpad);
/* first prepare the filter to be send onwards. We need to filter and
/* first prepare the filter to be sent onwards. We need to filter and
* transform it to valid caps for the otherpad. */
if (filter) {
GST_DEBUG_OBJECT (pad, "filter caps %" GST_PTR_FORMAT, filter);
@ -2547,7 +2547,7 @@ gst_base_transform_set_passthrough (GstBaseTransform * trans,
*
* See if @trans is configured as a passthrough transform.
*
* Returns: %TRUE is the transform is configured in passthrough mode.
* Returns: %TRUE if the transform is configured in passthrough mode.
*
* MT safe.
*/
@ -2611,7 +2611,7 @@ gst_base_transform_set_in_place (GstBaseTransform * trans, gboolean in_place)
*
* See if @trans is configured as a in_place transform.
*
* Returns: %TRUE is the transform is configured in in_place mode.
* Returns: %TRUE if the transform is configured in in_place mode.
*
* MT safe.
*/
@ -2800,7 +2800,7 @@ gst_base_transform_reconfigure_src (GstBaseTransform * trans)
* @trans: a #GstBaseTransform
*
* Returns: (transfer full): the instance of the #GstBufferPool used
* by @trans; free it after use it
* by @trans; free it after use
*/
GstBufferPool *
gst_base_transform_get_buffer_pool (GstBaseTransform * trans)
@ -2821,10 +2821,10 @@ gst_base_transform_get_buffer_pool (GstBaseTransform * trans)
* @params: (out) (allow-none) (transfer full): the
* #GstAllocationParams of @allocator
*
* Lets #GstBaseTransform sub-classes to know the memory @allocator
* Lets #GstBaseTransform sub-classes know the memory @allocator
* used by the base class and its @params.
*
* Unref the @allocator after use it.
* Unref the @allocator after use.
*/
void
gst_base_transform_get_allocator (GstBaseTransform * trans,
@ -2846,13 +2846,13 @@ gst_base_transform_get_allocator (GstBaseTransform * trans,
* @updated_caps: An updated version of the srcpad caps to be pushed
* downstream
*
* Updates the srcpad caps and send the caps downstream. This function
* Updates the srcpad caps and sends the caps downstream. This function
* can be used by subclasses when they have already negotiated their caps
* but found a change in them (or computed new information). This way,
* they can notify downstream about that change without losing any
* buffer.
*
* Returns: %TRUE if the caps could be send downstream %FALSE otherwise
* Returns: %TRUE if the caps could be sent downstream %FALSE otherwise
*
* Since: 1.6
*/

View file

@ -123,10 +123,10 @@ struct _GstBaseTransform {
* Subclasses can override this method to check if @caps can be
* handled by the element. The default implementation might not be
* the most optimal way to check this in all cases.
* @set_caps: allows the subclass to be notified of the actual caps set.
* @set_caps: Allows the subclass to be notified of the actual caps set.
* @query: Optional.
* Handle a requested query. Subclasses that implement this
* should must chain up to the parent if they didn't handle the
* must chain up to the parent if they didn't handle the
* query
* @decide_allocation: Setup the allocation parameters for allocating output
* buffers. The passed in query contains the result of the
@ -153,7 +153,7 @@ struct _GstBaseTransform {
* The default implementation uses get_unit_size and keeps
* the number of units the same.
* @get_unit_size: Required if the transform is not in-place.
* get the size in bytes of one unit for the given caps.
* Get the size in bytes of one unit for the given caps.
* @start: Optional.
* Called when the element starts processing.
* Allows opening external resources.
@ -181,7 +181,7 @@ struct _GstBaseTransform {
* offsets of the buffer.
* @transform_meta: Optional. Transform the metadata on the input buffer to the
* output buffer. By default this method copies all meta without
* tags. subclasses can implement this method and return %TRUE if
* tags. Subclasses can implement this method and return %TRUE if
* the metadata is to be copied.
* @before_transform: Optional.
* This method is called right before the base class will
@ -206,7 +206,7 @@ struct _GstBaseTransform {
* @queued_buf variable, generates an output buffer if needed
* by calling the class @prepare_output_buffer, and then
* calls either @transform or @transform_ip. Elements that don't
* do 1-to-1 transformations on input to output buffers can either
* do 1-to-1 transformations of input to output buffers can either
* return GST_BASE_TRANSFORM_FLOW_DROPPED or simply not generate
* an output buffer until they are ready to do so. (Since: 1.6)
*