platform/upstream/gstreamer.git
9 years agoqueue: avoid slice allocs/frees for each item
Tim-Philipp Müller [Sat, 30 May 2015 13:27:05 +0000 (14:27 +0100)]
queue: avoid slice allocs/frees for each item

Microoptimisation: Let GstQueueArray store our
item struct. That way we don't have to alloc/free
temporary QueueItem slices for every item we want
to put into the queue.

https://bugzilla.gnome.org/show_bug.cgi?id=750149

9 years agoqueuearray: allow storing of structs in addition to pointers
Tim-Philipp Müller [Sat, 30 May 2015 12:07:50 +0000 (13:07 +0100)]
queuearray: allow storing of structs in addition to pointers

This way we don't have to allocate/free temporary structs
for storing things in the queue array.

API: gst_queue_array_new_for_struct()
API: gst_queue_array_push_tail_struct()
API: gst_queue_array_peek_head_struct()
API: gst_queue_array_pop_head_struct()
API: gst_queue_array_drop_struct()

https://bugzilla.gnome.org/show_bug.cgi?id=750149

9 years agoAutomatic update of common submodule
Stefan Sauer [Fri, 3 Jul 2015 19:57:55 +0000 (21:57 +0200)]
Automatic update of common submodule

From f74b2df to 9aed1d7

9 years agopad: Enforce NEED_PARENT flag also for chain
Olivier Crête [Fri, 19 Jun 2015 04:05:44 +0000 (00:05 -0400)]
pad: Enforce NEED_PARENT flag also for chain

The check for the presence of the parent in the presence of
the NEED_PARENT flag was missing for the chain function. Also keep
a ref on the parent in case the pad is removed mid-chain.

9 years agodocs: update for two missing elements
Stefan Sauer [Fri, 3 Jul 2015 13:55:08 +0000 (15:55 +0200)]
docs: update for two missing elements

Concat was not linked and streamiddemux was missing.

9 years agodocs: another sweep canonicalizing the plugin docs sections file
Stefan Sauer [Fri, 3 Jul 2015 10:37:54 +0000 (12:37 +0200)]
docs: another sweep canonicalizing the plugin docs sections file

Use underscores for capsfilter macros. Correct the type-name for fakesrc
if we ever implement the enum.

9 years agodocs: order and canonicalize the -sections.txt file
Stefan Sauer [Fri, 3 Jul 2015 09:45:19 +0000 (11:45 +0200)]
docs: order and canonicalize the -sections.txt file

Have all sections in alphabetical order. Also make the macro order consistent.
This is a preparation for generating the file. Remove GET_CLASS macro for
typefine element, since it is not used and the header is not installed.

9 years agomemory: Add missing field initializers to GstMapInfo
Stian Selnes [Mon, 16 Dec 2013 10:24:17 +0000 (11:24 +0100)]
memory: Add missing field initializers to GstMapInfo

https://bugzilla.gnome.org/show_bug.cgi?id=751881

9 years agoinputselector: remove always-true check
Luis de Bethencourt [Thu, 2 Jul 2015 14:10:43 +0000 (15:10 +0100)]
inputselector: remove always-true check

event can't be NULL, it has been dereferenced by GST_EVENT_TYPE (), and no
case frees the pointer. Remove unnecessary check which will always be True.

CID #1308955

9 years agotransform: Also copy POOL metas and make sure to copy over metas when creating subbuffers
Sebastian Dröge [Wed, 1 Jul 2015 08:50:19 +0000 (10:50 +0200)]
transform: Also copy POOL metas and make sure to copy over metas when creating subbuffers

POOL meta just means that this specific instance of the meta is related to a
pool, a copy should be made when reasonable and the flag should just not be
set in the copy.

9 years agoadapter: Also copy POOL metas and make sure to copy over metas when creating subbuffers
Sebastian Dröge [Wed, 1 Jul 2015 08:45:01 +0000 (10:45 +0200)]
adapter: Also copy POOL metas and make sure to copy over metas when creating subbuffers

POOL meta just means that this specific instance of the meta is related to a
pool, a copy should be made when reasonable and the flag should just not be
set in the copy.

9 years agobuffer: Don't copy "memory" metas unconditionally
Sebastian Dröge [Wed, 1 Jul 2015 08:36:36 +0000 (10:36 +0200)]
buffer: Don't copy "memory" metas unconditionally

Don't copy memory metas if we only copied part of the buffer, didn't
copy memories or merged memories. In all these cases the memory
structure has changed and the memory meta becomes meaningless.

https://bugzilla.gnome.org/show_bug.cgi?id=751712

9 years agoRevert "buffer: Don't copy POOLED and memory metadata unconditionally"
Sebastian Dröge [Wed, 1 Jul 2015 08:25:15 +0000 (10:25 +0200)]
Revert "buffer: Don't copy POOLED and memory metadata unconditionally"

This reverts commit 7a08fa5ec4804f104e9aa9f458322f6eb49a7e49.

9 years agobuffer: Don't copy POOLED and memory metadata unconditionally
Sebastian Dröge [Tue, 30 Jun 2015 11:38:10 +0000 (13:38 +0200)]
buffer: Don't copy POOLED and memory metadata unconditionally

https://bugzilla.gnome.org/show_bug.cgi?id=751712

9 years agobaseparse: Use new gst_adapter_get_buffer() API instead of gst_adapter_map()
Sebastian Dröge [Tue, 30 Jun 2015 09:18:24 +0000 (11:18 +0200)]
baseparse: Use new gst_adapter_get_buffer() API instead of gst_adapter_map()

This preserves GstMeta properly unless the subclass does special things. It's
enough to make h264parse's stream-format/alignment conversion pass through
metas as needed.

https://bugzilla.gnome.org/show_bug.cgi?id=742385

9 years agoadapter: Add get variants of the buffer based take functions
Sebastian Dröge [Tue, 30 Jun 2015 09:11:25 +0000 (11:11 +0200)]
adapter: Add get variants of the buffer based take functions

Main difference to gst_adapter_map() for all practical purposes is that
GstMeta of the buffers will be preserved.

https://bugzilla.gnome.org/show_bug.cgi?id=742385

9 years agoadapter: Copy over GstMeta from the input buffers to the output
Sebastian Dröge [Mon, 29 Jun 2015 15:03:10 +0000 (17:03 +0200)]
adapter: Copy over GstMeta from the input buffers to the output

All functions that return a GstBuffer or a list of them will now copy
all GstMeta from the input buffers except for meta with GST_META_FLAG_POOLED
flag or "memory" tag.

This is similar to the existing behaviour that the caller can't assume
anything about the buffer flags, timestamps or other metadata. And it's
also the same that gst_adapter_take_buffer_fast() did before, and what
gst_adapter_take_buffer() did if part of the first buffer or the complete
first buffer was requested.

https://bugzilla.gnome.org/show_bug.cgi?id=742385

9 years agoptp: Init function can take a NULL interfaces array
Olivier Crête [Tue, 30 Jun 2015 00:27:12 +0000 (20:27 -0400)]
ptp: Init function can take a NULL interfaces array

9 years agotests: caps: fix test_intersect_flagset failure
Vineeth TM [Mon, 29 Jun 2015 04:57:11 +0000 (13:57 +0900)]
tests: caps: fix test_intersect_flagset failure

test_intersect_flagset fails because when caps is being
created, flags and mask are being cast to uint64 while
they should be uint. This results in invalid memory access
or a segfault.

https://bugzilla.gnome.org/show_bug.cgi?id=751628

9 years agoscripts: Fix GST_VALIDATE_PLUGIN_PATH
Thibault Saunier [Mon, 29 Jun 2015 12:22:46 +0000 (14:22 +0200)]
scripts: Fix GST_VALIDATE_PLUGIN_PATH

It moved recently

9 years agobasetransform: Fix up documentation of transform_meta vfunc
Sebastian Dröge [Mon, 29 Jun 2015 11:58:04 +0000 (13:58 +0200)]
basetransform: Fix up documentation of transform_meta vfunc

By default we copy all metas that have no tags.

9 years agodirectcontrolbinding: fix ABI break
Tim-Philipp Müller [Mon, 29 Jun 2015 09:41:27 +0000 (10:41 +0100)]
directcontrolbinding: fix ABI break

Structure size was increased without adjustment of the padding.

https://bugzilla.gnome.org/show_bug.cgi?id=751622
https://bugzilla.gnome.org/show_bug.cgi?id=740502

9 years agotask: guard against NULL task function
Prashant Gotarne [Thu, 19 Mar 2015 10:25:14 +0000 (15:55 +0530)]
task: guard against NULL task function

https://bugzilla.gnome.org/show_bug.cgi?id=746439

9 years agofunnel: add "forward-sticky-events" property
Miguel París Díaz [Thu, 14 May 2015 09:48:45 +0000 (11:48 +0200)]
funnel: add "forward-sticky-events" property

It is useful to avoid sending sticky event on stream changes.

https://bugzilla.gnome.org/show_bug.cgi?id=749315

9 years agoBack to development
Sebastian Dröge [Wed, 24 Jun 2015 22:04:07 +0000 (00:04 +0200)]
Back to development

9 years agoRelease 1.5.2
Sebastian Dröge [Wed, 24 Jun 2015 20:49:17 +0000 (22:49 +0200)]
Release 1.5.2

9 years agoUpdate .po files
Sebastian Dröge [Wed, 24 Jun 2015 20:45:00 +0000 (22:45 +0200)]
Update .po files

9 years agotests: gstutils: fix wrong description of test element
Thiago Santos [Tue, 23 Jun 2015 02:37:27 +0000 (23:37 -0300)]
tests: gstutils: fix wrong description of test element

It is a fakesink with request pads, not a source

9 years agobufferpool: Fixed compiler warning
Jonas Holmberg [Wed, 24 Jun 2015 13:35:16 +0000 (15:35 +0200)]
bufferpool: Fixed compiler warning

The pool variable was unused when buidling with debug disabled.

9 years agopo: Update translations
Sebastian Dröge [Wed, 24 Jun 2015 09:13:40 +0000 (11:13 +0200)]
po: Update translations

9 years agowin32: Update .def file for new API
Sebastian Dröge [Wed, 24 Jun 2015 09:12:03 +0000 (11:12 +0200)]
win32: Update .def file for new API

9 years agobasesink: need to deep-copy last buffer list in drain
Hyunjun Ko [Wed, 24 Jun 2015 05:19:04 +0000 (14:19 +0900)]
basesink: need to deep-copy last buffer list in drain

https://bugzilla.gnome.org/show_bug.cgi?id=751420

9 years agobufferlist: Warn if copying a buffer fails in gst_buffer_list_copy_deep()
Sebastian Dröge [Wed, 24 Jun 2015 08:52:02 +0000 (10:52 +0200)]
bufferlist: Warn if copying a buffer fails in gst_buffer_list_copy_deep()

9 years agobufferlist: add new api gst_buffer_list_copy_deep
Hyunjun Ko [Wed, 24 Jun 2015 05:18:47 +0000 (14:18 +0900)]
bufferlist: add new api gst_buffer_list_copy_deep

https://bugzilla.gnome.org/show_bug.cgi?id=751420

9 years agogstcheck: Print newline in message handler
Jonas Holmberg [Tue, 23 Jun 2015 14:58:56 +0000 (16:58 +0200)]
gstcheck: Print newline in message handler

The message handler is supposed to print a newline after the message
just like the default message handler.

9 years agoinputselector: Handle different duration track selection
Song Bing [Fri, 12 Jun 2015 08:54:32 +0000 (16:54 +0800)]
inputselector: Handle different duration track selection

Support track switch from EOS track to non-EOS one.

https://bugzilla.gnome.org/show_bug.cgi?id=750761

9 years agopad: Clear EOS flag after received STREAM_START event
Song Bing [Fri, 12 Jun 2015 08:52:46 +0000 (16:52 +0800)]
pad: Clear EOS flag after received STREAM_START event

Clear EOS flag after received STREAM_START event

https://bugzilla.gnome.org/show_bug.cgi?id=750761

9 years agotests: gstutils: add tests for gst_element_get_compatible_pad
Thiago Santos [Mon, 22 Jun 2015 17:30:49 +0000 (14:30 -0300)]
tests: gstutils: add tests for gst_element_get_compatible_pad

Adds tests for gst_element_get_compatible_pad for when it has to
request pads.

Note that these tests don't cover the case when it has to request
a pad that already exists.

https://bugzilla.gnome.org/show_bug.cgi?id=751235

9 years agoutils: use caps when getting a compatible pad by template
Thiago Santos [Fri, 19 Jun 2015 18:46:56 +0000 (15:46 -0300)]
utils: use caps when getting a compatible pad by template

Do not ignore the caps argument when requesting a pad by template.

This is particularly harmful when the pad caps query by default
returns ANY so it will match the first template instead of the
one that actually intersects with the caps.

https://bugzilla.gnome.org/show_bug.cgi?id=751235

9 years agogstsample.h: Include gstbufferlist.h now that it uses GstBufferList
Jan Schmidt [Mon, 22 Jun 2015 14:14:30 +0000 (00:14 +1000)]
gstsample.h: Include gstbufferlist.h now that it uses GstBufferList

9 years agoconcat: when releasing pad, send EOS appropriately.
Mathieu Duponchelle [Wed, 17 Jun 2015 14:12:13 +0000 (16:12 +0200)]
concat: when releasing pad, send EOS appropriately.

Previously, concat sent an EOS if there was a next pad.

https://bugzilla.gnome.org/show_bug.cgi?id=751107

9 years agoconcat: Add adjust-base property
Carlos Rafael Giani [Tue, 16 Jun 2015 14:14:18 +0000 (16:14 +0200)]
concat: Add adjust-base property

This disables the segment.base adjustments, which is useful if downstream
takes care of base adjustments already (example: a combination of concat
and streamsynchronizer)

https://bugzilla.gnome.org/show_bug.cgi?id=751047

9 years agobasesink: Unset the last buffer list if we only got a buffer
Sebastian Dröge [Mon, 22 Jun 2015 12:04:45 +0000 (14:04 +0200)]
basesink: Unset the last buffer list if we only got a buffer

Also remember any preroll buffer list.

9 years agosample: Add new API to the docs
Sebastian Dröge [Mon, 22 Jun 2015 11:33:29 +0000 (13:33 +0200)]
sample: Add new API to the docs

9 years agobasesink: enable to get last sample including buffer list if needed
Hyunjun [Mon, 22 Jun 2015 11:02:55 +0000 (20:02 +0900)]
basesink: enable to get last sample including buffer list if needed

In case of a buffer list rendering, last-sample is not updated.
It needs to be updated and enable to get buffer list from last-sample.

https://bugzilla.gnome.org/show_bug.cgi?id=751026

9 years agosample: add gst_sample_set/get_buffer_list apis
Hyunjun [Mon, 22 Jun 2015 10:35:40 +0000 (19:35 +0900)]
sample: add gst_sample_set/get_buffer_list apis

Allowed to set/get buffer list to sample if needed

https://bugzilla.gnome.org/show_bug.cgi?id=751026

9 years agotest.py: remove accidentally committed file
Tim-Philipp Müller [Fri, 19 Jun 2015 09:52:10 +0000 (10:52 +0100)]
test.py: remove accidentally committed file

9 years agodoc: Unify Since mark for attribute and enum
Nicolas Dufresne [Thu, 18 Jun 2015 15:51:48 +0000 (11:51 -0400)]
doc: Unify Since mark for attribute and enum

As this show up as prose in the doc, simply make it consistent
and "arguable" nicer to read.

9 years agodoc: Remove parenthesis around Since:
Nicolas Dufresne [Thu, 18 Jun 2015 15:48:50 +0000 (11:48 -0400)]
doc: Remove parenthesis around Since:

This confuse the parser, hence it does not endup in the doc and the
index properly.

9 years agoAdd GstParentBufferMeta
Jan Schmidt [Wed, 6 May 2015 06:44:48 +0000 (16:44 +1000)]
Add GstParentBufferMeta

A core meta which helps implement the old concept
of sub-buffering in some situations, by making it
possible for a buffer to keep a ref on a different
parent buffer. The parent buffer is unreffed when
the Meta is freed.

This meta is used to ensure that a buffer whose
memory is being shared to a child buffer isn't freed
and returned to a buffer pool until the memory
is.

https://bugzilla.gnome.org/show_bug.cgi?id=750039

9 years agogi: Use INTROSPECTION_INIT for --add-init-section
Nicolas Dufresne [Tue, 16 Jun 2015 22:08:24 +0000 (18:08 -0400)]
gi: Use INTROSPECTION_INIT for --add-init-section

This new define was added to common. The new init section fixed
compilation warning found in the init line that was spread across
all files.

9 years agoAutomatic update of common submodule
Nicolas Dufresne [Tue, 16 Jun 2015 21:46:44 +0000 (17:46 -0400)]
Automatic update of common submodule

From 6015d26 to f74b2df

9 years agoclock: Fix _STIME_FORMAT macros
Nicolas Dufresne [Mon, 15 Jun 2015 14:06:00 +0000 (10:06 -0400)]
clock: Fix _STIME_FORMAT macros

This macro didn't work well as it relied on the sign on the last
divided number (number of days). This value is most of the time
zero, and zero is considered positive in printf. Instead, deal with
the sign manually, and resuse the original macros for the rest. This
actually simplify the macro a lot.

9 years agotypefindelement: reset segment only once streaming has stopped
Tim-Philipp Müller [Sun, 14 Jun 2015 19:48:29 +0000 (20:48 +0100)]
typefindelement: reset segment only once streaming has stopped

Fixes the occasional criticals in the discoverer unit test.

https://bugzilla.gnome.org/show_bug.cgi?id=745073
https://bugzilla.gnome.org/show_bug.cgi?id=750823

9 years agodoc: Add more missing symbols in lib-sections.txt
Nicolas Dufresne [Sun, 14 Jun 2015 15:23:22 +0000 (11:23 -0400)]
doc: Add more missing symbols in lib-sections.txt

These where causing broken links.

9 years agodoc: Fix reference to unknown type GstNetAddress
Nicolas Dufresne [Sun, 14 Jun 2015 15:22:54 +0000 (11:22 -0400)]
doc: Fix reference to unknown type GstNetAddress

9 years agodoc: Include and fix GstControlPoint
Nicolas Dufresne [Sun, 14 Jun 2015 15:22:36 +0000 (11:22 -0400)]
doc: Include and fix GstControlPoint

9 years agodoc: Add GstNetControlMessageMeta to the doc
Nicolas Dufresne [Sun, 14 Jun 2015 15:21:26 +0000 (11:21 -0400)]
doc: Add GstNetControlMessageMeta to the doc

This is being referenced elsewhere, but results in broken links.
It seems to be public API, so I think it should be in the doc.

9 years agodoc: Document GstPushSrcClass
Nicolas Dufresne [Sun, 14 Jun 2015 14:59:51 +0000 (10:59 -0400)]
doc: Document GstPushSrcClass

9 years agodoc: Better document new GstCollectData.ABI.abi.dts
Nicolas Dufresne [Sun, 14 Jun 2015 14:58:18 +0000 (10:58 -0400)]
doc: Better document new GstCollectData.ABI.abi.dts

The doc generator get confused with the inline structure. So
workaround by wrapping the inner of the structure with
public/private mark, and document that GST_COLLECT_PADS_DTS macro
shall be used to access this.

9 years agodoc: Various doc fixes for libgstreamer-base
Nicolas Dufresne [Sun, 14 Jun 2015 14:56:28 +0000 (10:56 -0400)]
doc: Various doc fixes for libgstreamer-base

* Fix function name in sections.txt
* Add few missing or fix miss-named
* Workaround gtk-doc being confused with non typedef
  types (loose track of public/private

9 years agodoc: More doc warning fixes
Nicolas Dufresne [Sun, 14 Jun 2015 14:25:52 +0000 (10:25 -0400)]
doc: More doc warning fixes

So from this point, the remaining warning for libgstreamer are about
protected member not showing in the doc. This may need some discussion
with upstream gtk-doc people.

* Remove % in from of none macro
* Fixed GST_TYPE_FAGS -> GST_TYPE_FAG_SET
* Minor wording fix
* Can't link to GstUri.port, so split the .port part

9 years agodoc: In GstUri we meant nul-terminated, not %NULL
Nicolas Dufresne [Sun, 14 Jun 2015 13:17:21 +0000 (09:17 -0400)]
doc: In GstUri we meant nul-terminated, not %NULL

%NULL refers to the pointer. I've written it this way in one
word as this is what GLib uses.

9 years agodoc: Cannot reference GST_PACKAGE_RELEASE_DATETIME
Nicolas Dufresne [Sun, 14 Jun 2015 01:02:20 +0000 (21:02 -0400)]
doc: Cannot reference GST_PACKAGE_RELEASE_DATETIME

So simply remove the % sign.

9 years agodoc: Fix typo in ref _clock_wait_for_sync()
Nicolas Dufresne [Sun, 14 Jun 2015 00:52:01 +0000 (20:52 -0400)]
doc: Fix typo in ref _clock_wait_for_sync()

9 years agodoc: Fix GstUri doc typos
Nicolas Dufresne [Sun, 14 Jun 2015 00:37:34 +0000 (20:37 -0400)]
doc: Fix GstUri doc typos

* Use &perctn; instead of reserved character %
* NULL take two L

9 years agodoc: Fix Since: marks
Nicolas Dufresne [Sun, 14 Jun 2015 00:19:59 +0000 (20:19 -0400)]
doc: Fix Since: marks

There was few Since: mark missing their column. Also unify the way
we set the Since mark on enum value and structure members. These
sadly don't show up in the index.

9 years agodoc: Add gst_buffer_copy_deep()
Nicolas Dufresne [Sun, 14 Jun 2015 00:01:27 +0000 (20:01 -0400)]
doc: Add gst_buffer_copy_deep()

9 years agogi: Skip gst_consitency_checker_new
Nicolas Dufresne [Sat, 13 Jun 2015 23:47:45 +0000 (19:47 -0400)]
gi: Skip gst_consitency_checker_new

This non boxed type cannot be allocated safely.

9 years agodoc: Add indexes of added APIs
Nicolas Dufresne [Sat, 13 Jun 2015 23:46:21 +0000 (19:46 -0400)]
doc: Add indexes of added APIs

One of the nice feature in GTK doc is that it generate indexes
of added APIs base on the since marker. Include that in our doc
while fixing the issue of duplicate ID (produce xml contains that
id it seems)

9 years agodoc: Make ..._source_find_control_point_iter transfer none
Nicolas Dufresne [Sat, 13 Jun 2015 19:10:53 +0000 (15:10 -0400)]
doc: Make ..._source_find_control_point_iter transfer none

9 years agodoc: Silence warning about unused gstntppacket section
Nicolas Dufresne [Sat, 13 Jun 2015 18:40:43 +0000 (14:40 -0400)]
doc: Silence warning about unused gstntppacket section

This API is internal.

9 years agoRevert "doc: Add GstNtpPacket to the doc"
Nicolas Dufresne [Sat, 13 Jun 2015 18:37:42 +0000 (14:37 -0400)]
Revert "doc: Add GstNtpPacket to the doc"

This reverts commit c4eb876961aba1092c4831a8feaf48d7be1e38ae.

Oops, this is not a public API

9 years agodoc: Add GstNtpPacket to the doc
Nicolas Dufresne [Sat, 13 Jun 2015 18:21:41 +0000 (14:21 -0400)]
doc: Add GstNtpPacket to the doc

9 years agodoc: Remove gstindex from doc comment
Nicolas Dufresne [Sat, 13 Jun 2015 17:55:27 +0000 (13:55 -0400)]
doc: Remove gstindex from doc comment

Moving that to normal comment to silence the generator. GstIndex
is not in GStreamer library at the moment (removed from 0.10).

9 years agogi: Set collectpads function param scope
Nicolas Dufresne [Sat, 13 Jun 2015 17:48:03 +0000 (13:48 -0400)]
gi: Set collectpads function param scope

9 years agogi: Skip allocator of non-boxed structure
Nicolas Dufresne [Sat, 13 Jun 2015 17:42:58 +0000 (13:42 -0400)]
gi: Skip allocator of non-boxed structure

These are not usable as they are, and can easily lead to crash
or leaks. This also silence warning from the scanner. If we manage to
make this usable, we can then remove that mark, it will require
to make this type boxed.

9 years agodoc: Give gstconfig a nice name
Nicolas Dufresne [Sat, 13 Jun 2015 17:24:13 +0000 (13:24 -0400)]
doc: Give gstconfig a nice name

As all other section do have a nice came case name, it seems
more consistent.

9 years agodoc: Add missing gst_event_new/parse_protection
Nicolas Dufresne [Sat, 13 Jun 2015 17:19:21 +0000 (13:19 -0400)]
doc: Add missing gst_event_new/parse_protection

9 years agodoc: Give gstprotection section a nice title
Nicolas Dufresne [Sat, 13 Jun 2015 17:19:05 +0000 (13:19 -0400)]
doc: Give gstprotection section a nice title

9 years agodoc: Remove uneeded protectionevent section
Nicolas Dufresne [Sat, 13 Jun 2015 17:14:30 +0000 (13:14 -0400)]
doc: Remove uneeded protectionevent section

These functions are part of gstevent section already. Keep the doc,
since it's good.

9 years agotaglist: Add missing scope to func param
Nicolas Dufresne [Sat, 13 Jun 2015 16:32:49 +0000 (12:32 -0400)]
taglist: Add missing scope to func param

This tell GI if this function is for actions (call) or is the
answer of this method being asynchronous (async). In this case
it's a call. This also silence warning from the GI scanner.

9 years agogstprotection: Add missing Since 1.6 mark
Nicolas Dufresne [Sat, 13 Jun 2015 16:27:31 +0000 (12:27 -0400)]
gstprotection: Add missing Since 1.6 mark

9 years agogstprection: _add_protection_meta() is transfer none
Nicolas Dufresne [Sat, 13 Jun 2015 16:26:13 +0000 (12:26 -0400)]
gstprection: _add_protection_meta() is transfer none

Just like gst_buffer_add_meta() this function should also be
transfer none. This also silence a gi warning about returning
a copy of a non boxed bare structure.

9 years agogstprotection: Add missing namespace to macro
Nicolas Dufresne [Sat, 13 Jun 2015 16:25:19 +0000 (12:25 -0400)]
gstprotection: Add missing namespace to macro

GST_PROTECTION_SYSTEM_ID_CAPS_FIELD was missing the GST_ namespace.
Add it before its too late.

9 years agodoc: Keep SECTION: after the ifdef
Nicolas Dufresne [Sat, 13 Jun 2015 15:55:10 +0000 (11:55 -0400)]
doc: Keep SECTION: after the ifdef

Otherwise GTK doc will see it as often as we include that files
and warn about duplicated SECTION:

9 years agogi: Skip mini object method that play with refcounting
Nicolas Dufresne [Sat, 13 Jun 2015 14:23:52 +0000 (10:23 -0400)]
gi: Skip mini object method that play with refcounting

It make no sense to allow using that. Any use would lead to leak
of crash. Note that GMiniObject is entirely unusable as you cannot
cast from let's say GstBuffer to GstMiniObject.

9 years agolibs: more doc scanner fixes
Tim-Philipp Müller [Sat, 13 Jun 2015 14:05:05 +0000 (15:05 +0100)]
libs: more doc scanner fixes

gstbasetransform.h:196: Warning: GstBase: "@submit_input_buffer" parameter unexpected at this location:
 * @submit_input_buffer: Function which accepts a new input buffer and pre-processes it.

gstnetcontrolmessagemeta.c:103: Warning: GstNet: gst_buffer_add_net_control_message_meta: unknown parameter 'message' in documentation comment, should be 'addr'

9 years agodoc: Fix annoation for GstMiniObject
Nicolas Dufresne [Sat, 13 Jun 2015 13:37:46 +0000 (09:37 -0400)]
doc: Fix annoation for GstMiniObject

Replacing reprecated "Ref Func:", "Unref Fun:" etc. comment block
with appropriate (ref-func name) etc. annotation.

9 years agodoc: Fix unbalanced parenthesis
Nicolas Dufresne [Sat, 13 Jun 2015 13:34:06 +0000 (09:34 -0400)]
doc: Fix unbalanced parenthesis

9 years agodoc: Fix more typo
Nicolas Dufresne [Sat, 13 Jun 2015 13:30:24 +0000 (09:30 -0400)]
doc: Fix more typo

9 years agodoc: Fix type in previous commit
Nicolas Dufresne [Sat, 13 Jun 2015 13:22:41 +0000 (09:22 -0400)]
doc: Fix type in previous commit

Marker is (value .. not (alue.

9 years agodoc: Don't use deprecated Value: and Type: comment
Nicolas Dufresne [Sat, 13 Jun 2015 13:19:27 +0000 (09:19 -0400)]
doc: Don't use deprecated Value: and Type: comment

Instead use appropriate annotation. Annotations can be added
to the right of the constant name in a comment block.

9 years agocollectpads: Add new macro to the doc
Nicolas Dufresne [Fri, 12 Jun 2015 21:07:38 +0000 (17:07 -0400)]
collectpads: Add new macro to the doc

https://bugzilla.gnome.org/show_bug.cgi?id=740575

9 years agoclock: Add new signed time macro to the doc
Nicolas Dufresne [Fri, 12 Jun 2015 21:07:26 +0000 (17:07 -0400)]
clock: Add new signed time macro to the doc

https://bugzilla.gnome.org/show_bug.cgi?id=740575

9 years agocollectpads: Don't initially send an invalid DTS
Nicolas Dufresne [Wed, 10 Jun 2015 18:17:01 +0000 (14:17 -0400)]
collectpads: Don't initially send an invalid DTS

Sending a possibly invalid DTS may confuse the muxers, which will
then think the DTS is going backward.

https://bugzilla.gnome.org/show_bug.cgi?id=740575

9 years agocollectpads: Add negative DTS support
Nicolas Dufresne [Fri, 3 Apr 2015 21:54:50 +0000 (17:54 -0400)]
collectpads: Add negative DTS support

Make gst_collect_pads_clip_running_time() function also store the
signed DTS in the CollectData. This signed DTS value can be used by
muxers to properly handle streams where DTS can be negative initially.

https://bugzilla.gnome.org/show_bug.cgi?id=740575

9 years agoclock: Add signed time utilities
Nicolas Dufresne [Fri, 12 Jun 2015 16:06:05 +0000 (12:06 -0400)]
clock: Add signed time utilities

Add utility to print signed value of time. This is useful to
trace running time values in gint64 or GstClockTimeDiff values.
Additionally, define GST_CLOCK_STIME_NONE to indicate an invalid
signed time value and validation macro. New macros are:

GST_CLOCK_STIME_NONE
GST_CLOCK_STIME_IS_VALID
GST_STIME_FORMAT
GST_STIME_ARGS

https://bugzilla.gnome.org/show_bug.cgi?id=740575

9 years agomessage: add allow-none to gst_message_new_ function
Thiago Santos [Wed, 10 Jun 2015 23:44:26 +0000 (20:44 -0300)]
message: add allow-none to gst_message_new_ function

No restriction for creating messages without a source

9 years agowin32: update .def file for new API
Tim-Philipp Müller [Fri, 12 Jun 2015 12:45:33 +0000 (13:45 +0100)]
win32: update .def file for new API