X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgstmemory.c;h=a68aa47a944e149b5ca3c0dd1ac84fa4fa4937fa;hb=5470f6df00595f4ab44871e0e633bf15006abc5c;hp=dbbb482456d9fb8fdc7da5cbf3666d7dafa18df3;hpb=47fd993d4d160f409301ccc108d943a38358fae1;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gstmemory.c b/gst/gstmemory.c index dbbb482..a68aa47 100644 --- a/gst/gstmemory.c +++ b/gst/gstmemory.c @@ -21,6 +21,7 @@ /** * SECTION:gstmemory + * @title: GstMemory * @short_description: refcounted wrapper for memory blocks * @see_also: #GstBuffer * @@ -94,6 +95,7 @@ _gst_memory_free (GstMemory * mem) allocator = mem->allocator; gst_allocator_free (allocator, mem); + gst_object_unref (allocator); } @@ -162,8 +164,8 @@ gst_memory_is_type (GstMemory * mem, const gchar * mem_type) /** * gst_memory_get_sizes: * @mem: a #GstMemory - * @offset: pointer to offset - * @maxsize: pointer to maxsize + * @offset: (out) (allow-none): pointer to offset + * @maxsize: (out) (allow-none): pointer to maxsize * * Get the current @size, @offset and @maxsize of @mem. * @@ -320,7 +322,7 @@ lock_failed: } error: { - /* something went wrong, restore the orginal state again + /* something went wrong, restore the original state again * it is up to the subclass to log an error if needed. */ GST_CAT_INFO (GST_CAT_MEMORY, "mem %p: subclass map failed", mem); gst_memory_unlock (mem, (GstLockFlags) flags); @@ -425,7 +427,7 @@ gst_memory_share (GstMemory * mem, gssize offset, gssize size) * gst_memory_is_span: * @mem1: a #GstMemory * @mem2: a #GstMemory - * @offset: a pointer to a result offset + * @offset: (out): a pointer to a result offset * * Check if @mem1 and mem2 share the memory with a common parent memory object * and that the memory is contiguous.