diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2013-07-13 11:25:20 +0200 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2013-07-13 11:25:20 +0200 |
commit | e3751287e37561e9014ba3752a5db6ee4d682c25 (patch) | |
tree | 607f8a98c9ce23dce6d0532831ad8fa3573dd9ee /gst | |
parent | c8822ebee301ac67e1f65f39bc85366682e186ba (diff) |
Imported Upstream version 1.0.8upstream/1.0.8
Diffstat (limited to 'gst')
-rw-r--r-- | gst/Makefile.in | 135 | ||||
-rw-r--r-- | gst/gstallocator.c | 19 | ||||
-rw-r--r-- | gst/gstbuffer.c | 18 | ||||
-rw-r--r-- | gst/gstbuffer.h | 1 | ||||
-rw-r--r-- | gst/gstevent.c | 4 | ||||
-rw-r--r-- | gst/gstghostpad.c | 10 | ||||
-rw-r--r-- | gst/gstinfo.h | 2 | ||||
-rw-r--r-- | gst/gstmessage.c | 15 | ||||
-rw-r--r-- | gst/gstminiobject.c | 6 | ||||
-rw-r--r-- | gst/gstpad.c | 6 | ||||
-rw-r--r-- | gst/gstplugin.c | 16 | ||||
-rw-r--r-- | gst/gststructure.c | 14 | ||||
-rw-r--r-- | gst/gsttaglist.c | 4 | ||||
-rw-r--r-- | gst/gsttypefind.c | 4 | ||||
-rw-r--r-- | gst/gstutils.c | 4 | ||||
-rw-r--r-- | gst/parse/Makefile.in | 85 |
16 files changed, 165 insertions, 178 deletions
diff --git a/gst/Makefile.in b/gst/Makefile.in index 98c64c1..9a9568b 100644 --- a/gst/Makefile.in +++ b/gst/Makefile.in @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.12.6 from Makefile.am. +# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2012 Free Software Foundation, Inc. - +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -57,8 +58,7 @@ target_triplet = @target@ subdir = gst DIST_COMMON = $(libgstreamer_@GST_API_VERSION@include_HEADERS) \ $(noinst_HEADERS) $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(srcdir)/gstconfig.h.in $(srcdir)/gstversion.h.in \ - $(top_srcdir)/depcomp + $(srcdir)/gstconfig.h.in $(srcdir)/gstversion.h.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/m4/as-ac-expand.m4 \ $(top_srcdir)/common/m4/as-auto-alt.m4 \ @@ -222,23 +222,10 @@ libgstreamer_@GST_API_VERSION@_la_OBJECTS = \ AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent -am__v_lt_1 = libgstreamer_@GST_API_VERSION@_la_LINK = $(LIBTOOL) $(AM_V_lt) \ --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link \ $(CCLD) $(libgstreamer_@GST_API_VERSION@_la_CFLAGS) $(CFLAGS) \ $(libgstreamer_@GST_API_VERSION@_la_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles @@ -251,16 +238,20 @@ LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = +am__v_CC_0 = @echo " CC " $@; +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = +am__v_CCLD_0 = @echo " CCLD " $@; +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; SOURCES = $(libgstreamer_@GST_API_VERSION@_la_SOURCES) \ $(EXTRA_libgstreamer_@GST_API_VERSION@_la_SOURCES) \ $(nodist_libgstreamer_@GST_API_VERSION@_la_SOURCES) @@ -875,14 +866,12 @@ uninstall-libLTLIBRARIES: clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) - @list='$(lib_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done libgstreamer-@GST_API_VERSION@.la: $(libgstreamer_@GST_API_VERSION@_la_OBJECTS) $(libgstreamer_@GST_API_VERSION@_la_DEPENDENCIES) $(EXTRA_libgstreamer_@GST_API_VERSION@_la_DEPENDENCIES) $(AM_V_CCLD)$(libgstreamer_@GST_API_VERSION@_la_LINK) -rpath $(libdir) $(libgstreamer_@GST_API_VERSION@_la_OBJECTS) $(libgstreamer_@GST_API_VERSION@_la_LIBADD) $(LIBS) @@ -1485,12 +1474,12 @@ uninstall-nodist_libgstreamer_@GST_API_VERSION@includeHEADERS: dir='$(DESTDIR)$(libgstreamer_@GST_API_VERSION@includedir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd -# into them and run 'make' without going through this Makefile. -# To change the values of 'make' variables: instead of editing Makefiles, -# (1) if the variable is set in 'config.status', edit 'config.status' -# (which will cause the Makefiles to be regenerated when you run 'make'); -# (2) otherwise, pass the desired values on the 'make' command line. -$(RECURSIVE_TARGETS) $(RECURSIVE_CLEAN_TARGETS): +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ @@ -1500,11 +1489,7 @@ $(RECURSIVE_TARGETS) $(RECURSIVE_CLEAN_TARGETS): done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - for subdir in $$list; do \ + list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ @@ -1518,6 +1503,37 @@ $(RECURSIVE_TARGETS) $(RECURSIVE_CLEAN_TARGETS): if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @fail= failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ @@ -1526,10 +1542,6 @@ ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done -cscopelist-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \ - done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ @@ -1593,20 +1605,6 @@ GTAGS: && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" -cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP)'; \ - case "$(srcdir)" in \ - [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ - *) sdir=$(subdir)/$(srcdir) ;; \ - esac; \ - for i in $$list; do \ - if test -f "$$i"; then \ - echo "$(subdir)/$$i"; \ - else \ - echo "$$sdir/$$i"; \ - fi; \ - done >> $(top_builddir)/cscope.files - distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags @@ -1786,19 +1784,18 @@ uninstall-am: uninstall-girDATA uninstall-libLTLIBRARIES \ uninstall-typelibsDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all check \ - cscopelist-recursive ctags-recursive install install-am \ - install-strip tags-recursive + ctags-recursive install install-am install-strip \ + tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am all-local check check-am clean clean-generic \ - clean-libLTLIBRARIES clean-libtool cscopelist \ - cscopelist-recursive ctags ctags-recursive distclean \ - distclean-compile distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-girDATA \ - install-html install-html-am install-info install-info-am \ - install-libLTLIBRARIES \ + clean-libLTLIBRARIES clean-libtool ctags ctags-recursive \ + distclean distclean-compile distclean-generic \ + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-girDATA install-html install-html-am \ + install-info install-info-am install-libLTLIBRARIES \ install-libgstreamer_@GST_API_VERSION@includeHEADERS \ install-man \ install-nodist_libgstreamer_@GST_API_VERSION@includeHEADERS \ diff --git a/gst/gstallocator.c b/gst/gstallocator.c index a80b9a1..4e42408 100644 --- a/gst/gstallocator.c +++ b/gst/gstallocator.c @@ -58,15 +58,15 @@ struct _GstAllocatorPrivate }; #if defined(MEMORY_ALIGNMENT_MALLOC) -size_t gst_memory_alignment = 7; +gsize gst_memory_alignment = 7; #elif defined(MEMORY_ALIGNMENT_PAGESIZE) /* we fill this in in the _init method */ -size_t gst_memory_alignment = 0; +gsize gst_memory_alignment = 0; #elif defined(MEMORY_ALIGNMENT) -size_t gst_memory_alignment = MEMORY_ALIGNMENT - 1; +gsize gst_memory_alignment = MEMORY_ALIGNMENT - 1; #else #error "No memory alignment configured" -size_t gst_memory_alignment = 0; +gsize gst_memory_alignment = 0; #endif /* the default allocator */ @@ -213,7 +213,7 @@ gst_allocator_register (const gchar * name, GstAllocator * allocator) /** * gst_allocator_find: - * @name: the name of the allocator + * @name: (allow-none): the name of the allocator * * Find a previously registered allocator with @name. When @name is NULL, the * default allocator will be returned. @@ -595,19 +595,20 @@ _priv_gst_memory_initialize (void) /** * gst_memory_new_wrapped: * @flags: #GstMemoryFlags - * @data: data to wrap + * @data: (array length=size) (element-type guint8) (transfer none): data to + * wrap * @maxsize: allocated size of @data * @offset: offset in @data * @size: size of valid data - * @user_data: user_data - * @notify: called with @user_data when the memory is freed + * @user_data: (allow-none): user_data + * @notify: (allow-none) (scope async) (closure user_data): called with @user_data when the memory is freed * * Allocate a new memory block that wraps the given @data. * * The prefix/padding must be filled with 0 if @flags contains * #GST_MEMORY_FLAG_ZERO_PREFIXED and #GST_MEMORY_FLAG_ZERO_PADDED respectively. * - * Returns: a new #GstMemory. + * Returns: (transfer full): a new #GstMemory. */ GstMemory * gst_memory_new_wrapped (GstMemoryFlags flags, gpointer data, diff --git a/gst/gstbuffer.c b/gst/gstbuffer.c index 9e8962c..74682dc 100644 --- a/gst/gstbuffer.c +++ b/gst/gstbuffer.c @@ -216,7 +216,7 @@ _get_merged_memory (GstBuffer * buffer, guint idx, guint length) GstMemory *parent = NULL; gsize size, poffset = 0; - size = gst_buffer_get_size (buffer); + size = gst_buffer_get_sizes_range (buffer, idx, length, NULL, NULL); if (G_UNLIKELY (_is_span (mem + idx, length, &poffset, &parent))) { if (GST_MEMORY_IS_NO_SHARE (parent)) { @@ -236,7 +236,7 @@ _get_merged_memory (GstBuffer * buffer, guint idx, guint length) ptr = dinfo.data; left = size; - for (i = idx; i < length && left > 0; i++) { + for (i = idx; i < (idx + length) && left > 0; i++) { gst_memory_map (mem[i], &sinfo, GST_MAP_READ); tocopy = MIN (sinfo.size, left); GST_CAT_DEBUG (GST_CAT_PERFORMANCE, @@ -691,12 +691,12 @@ no_memory: /** * gst_buffer_new_wrapped_full: * @flags: #GstMemoryFlags - * @data: (array length=size) (element-type guint8): data to wrap + * @data: (array length=size) (element-type guint8) (transfer none): data to wrap * @maxsize: allocated size of @data * @offset: offset in @data * @size: size of valid data - * @user_data: user_data - * @notify: called with @user_data when the memory is freed + * @user_data: (allow-none): user_data + * @notify: (allow-none) (scope async) (closure user_data): called with @user_data when the memory is freed * * Allocate a new buffer that wraps the given memory. @data must point to * @maxsize of memory, the wrapped buffer will have the region from @offset and @@ -726,7 +726,7 @@ gst_buffer_new_wrapped_full (GstMemoryFlags flags, gpointer data, /** * gst_buffer_new_wrapped: - * @data: (array length=size) (element-type guint8): data to wrap + * @data: (array length=size) (element-type guint8) (transfer full): data to wrap * @size: allocated size of @data * * Creates a new buffer that wraps the given @data. The memory will be freed @@ -1492,7 +1492,7 @@ gst_buffer_unmap (GstBuffer * buffer, GstMapInfo * info) * gst_buffer_fill: * @buffer: a #GstBuffer. * @offset: the offset to fill - * @src: the source address + * @src: (array length=size) (element-type guint8): the source address * @size: the size to fill * * Copy @size bytes from @src to @buffer at @offset. @@ -1509,7 +1509,7 @@ gst_buffer_fill (GstBuffer * buffer, gsize offset, gconstpointer src, g_return_val_if_fail (GST_IS_BUFFER (buffer), 0); g_return_val_if_fail (gst_buffer_is_writable (buffer), 0); - g_return_val_if_fail (src != NULL, 0); + g_return_val_if_fail (src != NULL || size == 0, 0); GST_CAT_LOG (GST_CAT_BUFFER, "buffer %p, offset %" G_GSIZE_FORMAT ", size %" G_GSIZE_FORMAT, buffer, @@ -1594,7 +1594,7 @@ gst_buffer_extract (GstBuffer * buffer, gsize offset, gpointer dest, gsize size) * gst_buffer_memcmp: * @buffer: a #GstBuffer. * @offset: the offset in @buffer - * @mem: the memory to compare + * @mem: (array length=size) (element-type guint8): the memory to compare * @size: the size to compare * * Compare @size bytes starting from @offset in @buffer with the memory in @mem. diff --git a/gst/gstbuffer.h b/gst/gstbuffer.h index 49ad3d5..37fc00f 100644 --- a/gst/gstbuffer.h +++ b/gst/gstbuffer.h @@ -307,7 +307,6 @@ gboolean gst_buffer_map (GstBuffer *buffer, GstMapInfo *info, void gst_buffer_unmap (GstBuffer *buffer, GstMapInfo *info); - /* refcounting */ /** * gst_buffer_ref: diff --git a/gst/gstevent.c b/gst/gstevent.c index c5867e3..eba1e82 100644 --- a/gst/gstevent.c +++ b/gst/gstevent.c @@ -1571,8 +1571,8 @@ gst_event_new_segment_done (GstFormat format, gint64 position) /** * gst_event_parse_segment_done: * @event: A valid #GstEvent of type GST_EVENT_SEGMENT_DONE. - * @format: (out): Result location for the format, or NULL - * @position: (out): Result location for the position, or NULL + * @format: (out) (allow-none): Result location for the format, or NULL + * @position: (out) (allow-none): Result location for the position, or NULL * * Extracts the position and format from the segment done message. * diff --git a/gst/gstghostpad.c b/gst/gstghostpad.c index 2424cfd..081594f 100644 --- a/gst/gstghostpad.c +++ b/gst/gstghostpad.c @@ -77,7 +77,7 @@ static GstPad *gst_proxy_pad_get_target (GstPad * pad); /** * gst_proxy_pad_iterate_internal_links_default: * @pad: the #GstPad to get the internal links of. - * @parent: the parent of @pad or NULL + * @parent: (allow-none): the parent of @pad or NULL * * Invoke the default iterate internal links function of the proxy pad. * @@ -106,7 +106,7 @@ gst_proxy_pad_iterate_internal_links_default (GstPad * pad, GstObject * parent) /** * gst_proxy_pad_chain_default: * @pad: a sink #GstPad, returns GST_FLOW_ERROR if not. - * @parent: the parent of @pad or NULL + * @parent: (allow-none): the parent of @pad or NULL * @buffer: (transfer full): the #GstBuffer to send, return GST_FLOW_ERROR * if not. * @@ -134,7 +134,7 @@ gst_proxy_pad_chain_default (GstPad * pad, GstObject * parent, /** * gst_proxy_pad_chain_list_default: * @pad: a sink #GstPad, returns GST_FLOW_ERROR if not. - * @parent: the parent of @pad or NULL + * @parent: (allow-none): the parent of @pad or NULL * @list: (transfer full): the #GstBufferList to send, return GST_FLOW_ERROR * if not. * @@ -334,7 +334,7 @@ gst_ghost_pad_internal_activate_pull_default (GstPad * pad, GstObject * parent, /** * gst_ghost_pad_internal_activate_mode_default: * @pad: the #GstPad to activate or deactivate. - * @parent: the parent of @pad or NULL + * @parent: (allow-none): the parent of @pad or NULL * @mode: the requested activation mode * @active: whether the pad should be active or not. * @@ -422,7 +422,7 @@ gst_ghost_pad_activate_pull_default (GstPad * pad, GstObject * parent, /** * gst_ghost_pad_activate_mode_default: * @pad: the #GstPad to activate or deactivate. - * @parent: the parent of @pad or NULL + * @parent: (allow-none): the parent of @pad or NULL * @mode: the requested activation mode * @active: whether the pad should be active or not. * diff --git a/gst/gstinfo.h b/gst/gstinfo.h index 155851c..0757aac 100644 --- a/gst/gstinfo.h +++ b/gst/gstinfo.h @@ -494,7 +494,7 @@ GST_EXPORT GstDebugLevel _gst_debug_min; * GST_CAT_LEVEL_LOG: * @cat: category to use * @level: the severity of the message - * @object: the #GObject the message belongs to or NULL if none + * @object: (allow-none): the #GObject the message belongs to or NULL if none * @...: A printf-style message to output * * Outputs a debugging message. This is the most general macro for outputting diff --git a/gst/gstmessage.c b/gst/gstmessage.c index de79a46..58b4d85 100644 --- a/gst/gstmessage.c +++ b/gst/gstmessage.c @@ -1372,8 +1372,8 @@ gst_message_parse_info (GstMessage * message, GError ** gerror, gchar ** debug) /** * gst_message_parse_segment_start: * @message: A valid #GstMessage of type GST_MESSAGE_SEGMENT_START. - * @format: (out): Result location for the format, or NULL - * @position: (out): Result location for the position, or NULL + * @format: (out) (allow-none): Result location for the format, or NULL + * @position: (out) (allow-none): Result location for the position, or NULL * * Extracts the position and format from the segment start message. * @@ -1402,8 +1402,8 @@ gst_message_parse_segment_start (GstMessage * message, GstFormat * format, /** * gst_message_parse_segment_done: * @message: A valid #GstMessage of type GST_MESSAGE_SEGMENT_DONE. - * @format: (out): Result location for the format, or NULL - * @position: (out): Result location for the position, or NULL + * @format: (out) (allow-none): Result location for the format, or NULL + * @position: (out) (allow-none): Result location for the position, or NULL * * Extracts the position and format from the segment start message. * @@ -1432,7 +1432,7 @@ gst_message_parse_segment_done (GstMessage * message, GstFormat * format, /** * gst_message_parse_async_done: * @message: A valid #GstMessage of type GST_MESSAGE_ASYNC_DONE. - * @running_time: (out): Result location for the running_time or NULL + * @running_time: (out) (allow-none): Result location for the running_time or NULL * * Extract the running_time from the async_done message. * @@ -1456,7 +1456,7 @@ gst_message_parse_async_done (GstMessage * message, GstClockTime * running_time) /** * gst_message_parse_request_state: * @message: A valid #GstMessage of type GST_MESSAGE_REQUEST_STATE. - * @state: (out): Result location for the requested state or NULL + * @state: (out) (allow-none): Result location for the requested state or NULL * * Extract the requested state from the request_state message. * @@ -2108,7 +2108,8 @@ gst_message_new_reset_time (GstObject * src, GstClockTime running_time) /** * gst_message_parse_reset_time: * @message: A valid #GstMessage of type GST_MESSAGE_RESET_TIME. - * @running_time: (out): Result location for the running_time or NULL + * @running_time: (out) (allow-none): Result location for the running_time or + * NULL * * Extract the running-time from the RESET_TIME message. * diff --git a/gst/gstminiobject.c b/gst/gstminiobject.c index d219e27..741cafd 100644 --- a/gst/gstminiobject.c +++ b/gst/gstminiobject.c @@ -106,9 +106,9 @@ _priv_gst_mini_object_initialize (void) * @mini_object: a #GstMiniObject * @flags: initial #GstMiniObjectFlags * @type: the #GType of the mini-object to create - * @copy_func: the copy function, or NULL - * @dispose_func: the dispose function, or NULL - * @free_func: the free function or NULL + * @copy_func: (allow-none): the copy function, or NULL + * @dispose_func: (allow-none): the dispose function, or NULL + * @free_func: (allow-none): the free function or NULL * * Initializes a mini-object with the desired type and copy/dispose/free * functions. diff --git a/gst/gstpad.c b/gst/gstpad.c index 3c81659..4b1181f 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -2519,7 +2519,7 @@ no_peer: /** * gst_pad_iterate_internal_links_default: * @pad: the #GstPad to get the internal links of. - * @parent: the parent of @pad or NULL + * @parent: (allow-none): the parent of @pad or NULL * * Iterate the list of pads to which the given pad is linked to inside of * the parent element. @@ -2728,7 +2728,7 @@ event_forward_func (GstPad * pad, EventData * data) /** * gst_pad_event_default: * @pad: a #GstPad to call the default event handler on. - * @parent: the parent of @pad or NULL + * @parent: (allow-none): the parent of @pad or NULL * @event: (transfer full): the #GstEvent to handle. * * Invokes the default event handler for the given pad. @@ -2918,7 +2918,7 @@ query_forward_func (GstPad * pad, QueryData * data) /** * gst_pad_query_default: * @pad: a #GstPad to call the default query handler on. - * @parent: the parent of @pad or NULL + * @parent: (allow-none): the parent of @pad or NULL * @query: (transfer none): the #GstQuery to handle. * * Invokes the default query handler for the given pad. diff --git a/gst/gstplugin.c b/gst/gstplugin.c index fbac505..55868a6 100644 --- a/gst/gstplugin.c +++ b/gst/gstplugin.c @@ -1708,15 +1708,15 @@ gst_plugin_ext_dep_equals (GstPluginDep * dep, const gchar ** env_vars, /** * gst_plugin_add_dependency: * @plugin: a #GstPlugin - * @env_vars: NULL-terminated array of environment variables affecting the + * @env_vars: (allow-none): NULL-terminated array of environment variables affecting the * feature set of the plugin (e.g. an environment variable containing * paths where to look for additional modules/plugins of a library), * or NULL. Environment variable names may be followed by a path component * which will be added to the content of the environment variable, e.g. * "HOME/.mystuff/plugins". - * @paths: NULL-terminated array of directories/paths where dependent files - * may be. - * @names: NULL-terminated array of file names (or file name suffixes, + * @paths: (allow-none): NULL-terminated array of directories/paths where dependent files + * may be, or NULL. + * @names: (allow-none): NULL-terminated array of file names (or file name suffixes, * depending on @flags) to be used in combination with the paths from * @paths and/or the paths extracted from the environment variables in * @env_vars, or NULL. @@ -1779,14 +1779,14 @@ gst_plugin_add_dependency (GstPlugin * plugin, const gchar ** env_vars, /** * gst_plugin_add_dependency_simple: * @plugin: the #GstPlugin - * @env_vars: one or more environment variables (separated by ':', ';' or ','), + * @env_vars: (allow-none): one or more environment variables (separated by ':', ';' or ','), * or NULL. Environment variable names may be followed by a path component * which will be added to the content of the environment variable, e.g. * "HOME/.mystuff/plugins:MYSTUFF_PLUGINS_PATH" - * @paths: one ore more directory paths (separated by ':' or ';' or ','), + * @paths: (allow-none): one ore more directory paths (separated by ':' or ';' or ','), * or NULL. Example: "/usr/lib/mystuff/plugins" - * @names: one or more file names or file name suffixes (separated by commas), - * or NULL + * @names: (allow-none): one or more file names or file name suffixes (separated by commas), + * or NULL * @flags: optional flags, or #GST_PLUGIN_DEPENDENCY_FLAG_NONE * * Make GStreamer aware of external dependencies which affect the feature diff --git a/gst/gststructure.c b/gst/gststructure.c index 639d183..1564257 100644 --- a/gst/gststructure.c +++ b/gst/gststructure.c @@ -3138,6 +3138,15 @@ gst_structure_can_intersect (const GstStructure * struct1, } static gboolean +gst_caps_structure_has_field (GQuark field_id, const GValue * value, + gpointer user_data) +{ + GstStructure *subset = user_data; + + return gst_structure_id_get_value (subset, field_id) != NULL; +} + +static gboolean gst_caps_structure_is_subset_field (GQuark field_id, const GValue * value, gpointer user_data) { @@ -3181,6 +3190,11 @@ gst_structure_is_subset (const GstStructure * subset, (gst_structure_n_fields (superset) > gst_structure_n_fields (subset))) return FALSE; + /* The subset must have all fields that are in superset */ + if (!gst_structure_foreach ((GstStructure *) superset, + gst_caps_structure_has_field, (gpointer) subset)) + return FALSE; + return gst_structure_foreach ((GstStructure *) subset, gst_caps_structure_is_subset_field, (gpointer) superset); } diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c index 8597670..d27985a 100644 --- a/gst/gsttaglist.c +++ b/gst/gsttaglist.c @@ -454,7 +454,7 @@ gst_tag_lookup (const gchar * tag_name) * @type: the type this data is in * @nick: human-readable name * @blurb: a human-readable description about this tag - * @func: function for merging multiple values of this tag, or NULL + * @func: (allow-none): function for merging multiple values of this tag, or NULL * * Registers a new tag type for the use with GStreamer's type system. If a type * with that name is already registered, that one is used. @@ -498,7 +498,7 @@ gst_tag_register (const gchar * name, GstTagFlag flag, GType type, * @type: the type this data is in * @nick: human-readable name or short description (string constant) * @blurb: a human-readable description for this tag (string constant) - * @func: function for merging multiple values of this tag, or NULL + * @func: (allow-none): function for merging multiple values of this tag, or NULL * * Registers a new tag type for the use with GStreamer's type system. * diff --git a/gst/gsttypefind.c b/gst/gsttypefind.c index 302cca8..e493cbf 100644 --- a/gst/gsttypefind.c +++ b/gst/gsttypefind.c @@ -42,7 +42,7 @@ G_DEFINE_POINTER_TYPE (GstTypeFind, gst_type_find); /** * gst_type_find_register: - * @plugin: A #GstPlugin, or NULL for a static typefind function + * @plugin: (allow-none): A #GstPlugin, or NULL for a static typefind function * @name: The name for registering * @rank: The rank (or importance) of this typefind function * @func: The #GstTypeFindFunction to use @@ -159,7 +159,7 @@ gst_type_find_suggest (GstTypeFind * find, guint probability, GstCaps * caps) * @find: The #GstTypeFind object the function was called with * @probability: The probability in percent that the suggestion is right * @media_type: the media type of the suggested caps - * @fieldname: first field of the suggested caps, or NULL + * @fieldname: (allow-none): first field of the suggested caps, or NULL * @...: additional arguments to the suggested caps in the same format as the * arguments passed to gst_structure_new() (ie. triplets of field name, * field GType and field value) diff --git a/gst/gstutils.c b/gst/gstutils.c index 9590405..73585f8 100644 --- a/gst/gstutils.c +++ b/gst/gstutils.c @@ -2166,7 +2166,7 @@ gst_element_query_position (GstElement * element, GstFormat format, * gst_element_query_duration: * @element: a #GstElement to invoke the duration query on. * @format: the #GstFormat requested - * @duration: (out): A location in which to store the total duration, or NULL. + * @duration: (out) (allow-none): A location in which to store the total duration, or NULL. * * Queries an element for the total stream duration. * @@ -2531,7 +2531,7 @@ gst_pad_proxy_query_caps (GstPad * pad, GstQuery * query) * gst_pad_query_position: * @pad: a #GstPad to invoke the position query on. * @format: the #GstFormat requested - * @cur: (out): A location in which to store the current position, or NULL. + * @cur: (out) (allow-none): A location in which to store the current position, or NULL. * * Queries a pad for the stream position. * diff --git a/gst/parse/Makefile.in b/gst/parse/Makefile.in index c35c880..f24c5eb 100644 --- a/gst/parse/Makefile.in +++ b/gst/parse/Makefile.in @@ -1,8 +1,9 @@ -# Makefile.in generated by automake 1.12.6 from Makefile.am. +# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2012 Free Software Foundation, Inc. - +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -54,7 +55,7 @@ host_triplet = @host@ target_triplet = @target@ subdir = gst/parse DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in $(top_srcdir)/depcomp + $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/common/m4/as-ac-expand.m4 \ $(top_srcdir)/common/m4/as-auto-alt.m4 \ @@ -107,23 +108,10 @@ libgstparse_la_OBJECTS = $(nodist_libgstparse_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent -am__v_lt_1 = libgstparse_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ $(libgstparse_la_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o \ $@ -AM_V_P = $(am__v_P_@AM_V@) -am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) -am__v_P_0 = false -am__v_P_1 = : -AM_V_GEN = $(am__v_GEN_@AM_V@) -am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) -am__v_GEN_0 = @echo " GEN " $@; -am__v_GEN_1 = -AM_V_at = $(am__v_at_@AM_V@) -am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) -am__v_at_0 = @ -am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles @@ -136,16 +124,20 @@ LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = +am__v_CC_0 = @echo " CC " $@; +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ CCLD = $(CC) LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = +am__v_CCLD_0 = @echo " CCLD " $@; +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; SOURCES = $(nodist_libgstparse_la_SOURCES) DIST_SOURCES = am__can_run_installinfo = \ @@ -497,14 +489,12 @@ $(am__aclocal_m4_deps): clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) - @list='$(noinst_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } + @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" != "$$p" || dir=.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done libgstparse.la: $(libgstparse_la_OBJECTS) $(libgstparse_la_DEPENDENCIES) $(EXTRA_libgstparse_la_DEPENDENCIES) $(AM_V_CCLD)$(libgstparse_la_LINK) $(libgstparse_la_OBJECTS) $(libgstparse_la_LIBADD) $(LIBS) @@ -607,20 +597,6 @@ GTAGS: && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" -cscopelist: $(HEADERS) $(SOURCES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP)'; \ - case "$(srcdir)" in \ - [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ - *) sdir=$(subdir)/$(srcdir) ;; \ - esac; \ - for i in $$list; do \ - if test -f "$$i"; then \ - echo "$(subdir)/$$i"; \ - else \ - echo "$$sdir/$$i"; \ - fi; \ - done >> $(top_builddir)/cscope.files - distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags @@ -763,18 +739,17 @@ uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ - clean-libtool clean-noinstLTLIBRARIES cscopelist ctags \ - distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-dvi install-dvi-am install-exec \ - install-exec-am install-html install-html-am install-info \ - install-info-am install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags uninstall uninstall-am + clean-libtool clean-noinstLTLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ + pdf pdf-am ps ps-am tags uninstall uninstall-am Android.mk: Makefile.am |