platform/upstream/gstreamer.git
12 years agocheck: add macro to check for memory refcount
Wim Taymans [Thu, 5 Jan 2012 12:09:29 +0000 (13:09 +0100)]
check: add macro to check for memory refcount

12 years agoimprove docs a little
Wim Taymans [Thu, 5 Jan 2012 11:39:17 +0000 (12:39 +0100)]
improve docs a little

12 years agovalue: Add tests for the bitmask type
Sebastian Dröge [Fri, 16 Dec 2011 12:11:36 +0000 (13:11 +0100)]
value: Add tests for the bitmask type

12 years agostructure: Add "bitmask" as alias for (GstBitmask) when (de-)serializing values
Sebastian Dröge [Fri, 16 Dec 2011 11:39:15 +0000 (12:39 +0100)]
structure: Add "bitmask" as alias for (GstBitmask) when (de-)serializing values

12 years agovalue: Add 64-bit bitmask type
Sebastian Dröge [Fri, 16 Dec 2011 11:32:26 +0000 (12:32 +0100)]
value: Add 64-bit bitmask type

12 years agoAutomatic update of common submodule
Tim-Philipp Müller [Wed, 4 Jan 2012 19:50:01 +0000 (19:50 +0000)]
Automatic update of common submodule

From a62f3d4 to 0807187

12 years agobuffer: only reserve 6 extra flags
Wim Taymans [Wed, 4 Jan 2012 09:04:11 +0000 (10:04 +0100)]
buffer: only reserve 6 extra flags

Only reserve 6 extra flags instead of 10 so that more media specific flags
are available.

12 years agoGST_FLOW_UNEXPECTED -> GST_FLOW_EOS
Wim Taymans [Tue, 3 Jan 2012 14:25:31 +0000 (15:25 +0100)]
GST_FLOW_UNEXPECTED -> GST_FLOW_EOS

12 years agocompat: restore UNEXPECTED
Wim Taymans [Tue, 3 Jan 2012 14:05:47 +0000 (15:05 +0100)]
compat: restore UNEXPECTED

12 years agodocs: fix some docs
Wim Taymans [Tue, 3 Jan 2012 14:03:38 +0000 (15:03 +0100)]
docs: fix some docs

12 years agodefs: update
Wim Taymans [Tue, 3 Jan 2012 13:45:08 +0000 (14:45 +0100)]
defs: update

12 years agotaglist: avoid exposing the lists in tags
Wim Taymans [Tue, 3 Jan 2012 13:43:05 +0000 (14:43 +0100)]
taglist: avoid exposing the lists in tags

12 years agotaglist: add missing functions
Wim Taymans [Tue, 3 Jan 2012 12:42:12 +0000 (13:42 +0100)]
taglist: add missing functions

Add missing and essential functions now that we can't directly use GstStructure
methods on the taglist anymore.

12 years agovalue: add macro to check if a gvalue holds a sample
Wim Taymans [Tue, 3 Jan 2012 09:42:31 +0000 (10:42 +0100)]
value: add macro to check if a gvalue holds a sample

12 years agodocs: fix build of docs examples
Wim Taymans [Mon, 2 Jan 2012 14:47:46 +0000 (15:47 +0100)]
docs: fix build of docs examples

Update for registry method rename

12 years agobaseparse: turn assert into a real error
Wim Taymans [Mon, 2 Jan 2012 14:39:02 +0000 (15:39 +0100)]
baseparse: turn assert into a real error

Post a real error instead of just asserting.

12 years agobasesrc: handle latency event
Wim Taymans [Mon, 2 Jan 2012 14:38:25 +0000 (15:38 +0100)]
basesrc: handle latency event

12 years agoregistry: get rid of gst_default_registry_*() convenience macros
Tim-Philipp Müller [Mon, 2 Jan 2012 02:32:49 +0000 (02:32 +0000)]
registry: get rid of gst_default_registry_*() convenience macros

They're not really worth it: hardly save any typing, and aren't
great for bindings or gobject-introspection.

12 years agoregistry: rename gst_registry_get_default() to gst_registry_get()
Tim-Philipp Müller [Mon, 2 Jan 2012 02:22:51 +0000 (02:22 +0000)]
registry: rename gst_registry_get_default() to gst_registry_get()

It's not really a default if there is only one that can't be changed.

Should we return a ref like e.g. g_volume_monitor_get() does?

12 years agoMerge remote-tracking branch 'origin/master' into 0.11
Tim-Philipp Müller [Mon, 2 Jan 2012 02:21:40 +0000 (02:21 +0000)]
Merge remote-tracking branch 'origin/master' into 0.11

Conflicts:
gst/gsttaglist.c
plugins/elements/gstoutputselector.c

12 years agotags: add GST_TAG_LANGUAGE_NAME
Tim-Philipp Müller [Mon, 2 Jan 2012 00:17:17 +0000 (00:17 +0000)]
tags: add GST_TAG_LANGUAGE_NAME

API: GST_TAG_LANGUAGE_NAME

12 years agodocs: update controller design doc
Stefan Sauer [Sun, 1 Jan 2012 19:59:22 +0000 (20:59 +0100)]
docs: update controller design doc

12 years agocontroller: rename some tests
Stefan Sauer [Sun, 1 Jan 2012 19:57:34 +0000 (20:57 +0100)]
controller: rename some tests

12 years agocontroller: support control mapping for enums
Stefan Sauer [Sun, 1 Jan 2012 19:55:20 +0000 (20:55 +0100)]
controller: support control mapping for enums

Add a mapping for enum types (supporting sparse enums). Add a test.

12 years agocontroller: remove nonsense parts from test object property descriptions
Stefan Sauer [Sun, 1 Jan 2012 19:43:51 +0000 (20:43 +0100)]
controller: remove nonsense parts from test object property descriptions

12 years agointerpolationcontrolsource: fix cubic interpolation for arrays
Stefan Sauer [Sun, 1 Jan 2012 17:54:23 +0000 (18:54 +0100)]
interpolationcontrolsource: fix cubic interpolation for arrays

12 years agoaudio-example: also plot reverse-saw
Stefan Sauer [Sun, 1 Jan 2012 17:50:55 +0000 (18:50 +0100)]
audio-example: also plot reverse-saw

12 years agolfocontrolsource: cleanups and fix triangle calculations
Stefan Sauer [Sun, 1 Jan 2012 17:43:23 +0000 (18:43 +0100)]
lfocontrolsource: cleanups and fix triangle calculations

12 years agoaudio-example: fix the example
Stefan Sauer [Sun, 1 Jan 2012 17:34:12 +0000 (18:34 +0100)]
audio-example: fix the example

We need to scale the frequency values.

12 years agolfocontrolsource: make chainable
Stefan Sauer [Sun, 1 Jan 2012 14:16:06 +0000 (15:16 +0100)]
lfocontrolsource: make chainable

Now the properties of this controlsource are in turn controlable. Add an example
to show the usage.

12 years agocontroller: add logging and fix array functions
Stefan Sauer [Sun, 1 Jan 2012 14:01:22 +0000 (15:01 +0100)]
controller: add logging and fix array functions

12 years agocontroller: cleanup the tests
Stefan Sauer [Sun, 1 Jan 2012 13:55:35 +0000 (14:55 +0100)]
controller: cleanup the tests

12 years agocontroller: add more debug logging
Stefan Sauer [Sun, 1 Jan 2012 13:28:54 +0000 (14:28 +0100)]
controller: add more debug logging

12 years agoconvert Makefile spaces to tabs
David Schleef [Sun, 1 Jan 2012 01:37:20 +0000 (17:37 -0800)]
convert Makefile spaces to tabs

12 years agocontroller: also test array functions
Stefan Sauer [Sat, 31 Dec 2011 14:52:18 +0000 (15:52 +0100)]
controller: also test array functions

Improve the example to also collect value arrays and plot them.

12 years agocontroller: remove obsolete FIXME comment
Stefan Sauer [Sat, 31 Dec 2011 14:26:26 +0000 (15:26 +0100)]
controller: remove obsolete FIXME comment

12 years agocontroller: fix tests
Stefan Sauer [Sat, 31 Dec 2011 08:56:53 +0000 (09:56 +0100)]
controller: fix tests

Set a defined value to check for no-change.

12 years agocontrol-sources: turn into GstObjects
Stefan Sauer [Fri, 30 Dec 2011 17:35:40 +0000 (18:35 +0100)]
control-sources: turn into GstObjects

This is a preparation for chaining them.

12 years agoregistry: remove padding and signal vfuncs
Tim-Philipp Müller [Fri, 30 Dec 2011 19:37:31 +0000 (19:37 +0000)]
registry: remove padding and signal vfuncs

And fix signal GTypes and marshaller. No one will ever
need to subclass our registry, so just remove the padding
and the signal vfuncs.

12 years agotests: disable GstIndex unit test
Tim-Philipp Müller [Fri, 30 Dec 2011 15:39:55 +0000 (15:39 +0000)]
tests: disable GstIndex unit test

12 years agoindex: rename GstAssocFlags to GstIndexAssociationFlags
Tim-Philipp Müller [Fri, 30 Dec 2011 15:31:17 +0000 (15:31 +0000)]
index: rename GstAssocFlags to GstIndexAssociationFlags

Just in case we resurrect this later.

12 years agobase: disable unused index API and make functions static
Tim-Philipp Müller [Fri, 30 Dec 2011 15:24:52 +0000 (15:24 +0000)]
base: disable unused index API and make functions static

It's simply private helper API for now, until someone
fixes up GstBaseParse not to need it any more.

12 years agowin32: remove index API from .def file
Tim-Philipp Müller [Fri, 30 Dec 2011 15:24:32 +0000 (15:24 +0000)]
win32: remove index API from .def file

12 years agoelement: add LARGE padding to class structure
Tim-Philipp Müller [Fri, 30 Dec 2011 15:06:34 +0000 (15:06 +0000)]
element: add LARGE padding to class structure

Four slots for expansion is not a lot.

12 years agoindex: remove GstIndex and GstIndexFactory for now
Tim-Philipp Müller [Fri, 30 Dec 2011 15:03:02 +0000 (15:03 +0000)]
index: remove GstIndex and GstIndexFactory for now

There are many good use cases for GstIndex and we want
to add it back again in some form, but possibly not with
the current API, which is very powerful (maybe too powerful),
but also a bit confusing. At the very least we'd need to
make the API bindings-friendly.

12 years agogst: unref the two cotnroller types in _deinit()
Stefan Sauer [Fri, 30 Dec 2011 16:57:41 +0000 (17:57 +0100)]
gst: unref the two cotnroller types in _deinit()

12 years agocontroller: add more tests to core controller suite
Stefan Sauer [Fri, 30 Dec 2011 16:51:01 +0000 (17:51 +0100)]
controller: add more tests to core controller suite

Extend the dummy control-source to allow testing the sync code path. Add test
for 1:1 and 2:1 value <-> control-source sync.

12 years agocontroller: add a test for bindings control sources multiple times
Stefan Sauer [Fri, 30 Dec 2011 12:52:08 +0000 (13:52 +0100)]
controller: add a test for bindings control sources multiple times

12 years agomath-compat: move static variable for NAN into #ifndef NAN block
Tim-Philipp Müller [Fri, 30 Dec 2011 12:59:46 +0000 (12:59 +0000)]
math-compat: move static variable for NAN into #ifndef NAN block

And use G_GNUC_UNUSED instead of __attribute_used__

12 years agocontroller: use NAN instead of FP_NAN (which is the class)
Stefan Sauer [Fri, 30 Dec 2011 12:32:18 +0000 (13:32 +0100)]
controller: use NAN instead of FP_NAN (which is the class)

Also add a fallback define to math-compat.h.
Fixes #666887

12 years agooutput-selector: Do not false warn about unlinked pad
Thiago Santos [Thu, 29 Dec 2011 19:56:46 +0000 (16:56 -0300)]
output-selector: Do not false warn about unlinked pad

When output-selector didn't receive a newsegment event it would
warn about pad being unlinked when switching pads. Making the logs
wrong and misleading.

12 years agoMerge remote-tracking branch 'origin/master' into 0.11
Edward Hervey [Thu, 29 Dec 2011 15:49:39 +0000 (16:49 +0100)]
Merge remote-tracking branch 'origin/master' into 0.11

12 years agotests: Fix leak in pad check
Edward Hervey [Wed, 28 Dec 2011 14:13:09 +0000 (15:13 +0100)]
tests: Fix leak in pad check

12 years agogst: deinit meta flags too
Wim Taymans [Wed, 28 Dec 2011 13:51:50 +0000 (14:51 +0100)]
gst: deinit meta flags too

12 years agogst: Initialize new GstMetaFlags in init_post()
Edward Hervey [Wed, 28 Dec 2011 11:25:59 +0000 (12:25 +0100)]
gst: Initialize new GstMetaFlags in init_post()

12 years agogstquery: Small doc fixups
Edward Hervey [Thu, 1 Dec 2011 18:05:59 +0000 (19:05 +0100)]
gstquery: Small doc fixups

12 years agowin32: fix exported variables for VS 2010
Matej Knopp [Fri, 16 Dec 2011 01:20:27 +0000 (02:20 +0100)]
win32: fix exported variables for VS 2010

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

12 years agotriggercontrolsource: fix control reaches end of non-void function
Stefan Sauer [Tue, 27 Dec 2011 12:48:36 +0000 (13:48 +0100)]
triggercontrolsource: fix control reaches end of non-void function

Return NAN and check the value further up.
Fixes #666890

12 years agocontroller: quick-fix compiler warning breaking the build
Tim-Philipp Müller [Tue, 27 Dec 2011 11:40:40 +0000 (11:40 +0000)]
controller: quick-fix compiler warning breaking the build

This is likely not the proper fix.

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

12 years agotests: can't access private registry structure members directly any longer
Tim-Philipp Müller [Tue, 27 Dec 2011 11:35:28 +0000 (11:35 +0000)]
tests: can't access private registry structure members directly any longer

12 years agocontroller: fix compiler warning in interpolation control source
Tim-Philipp Müller [Tue, 27 Dec 2011 11:24:48 +0000 (11:24 +0000)]
controller: fix compiler warning in interpolation control source

gstinterpolationcontrolsource.c:54: warning: type qualifiers ignored
on function return type

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

12 years agofilesrc: remove "fd" property
Tim-Philipp Müller [Mon, 26 Dec 2011 18:44:39 +0000 (18:44 +0000)]
filesrc: remove "fd" property

It's no longer useful, since we don't use mmap any more anyway,
and we might use a different API for I/O in future (such as GIO).

12 years agoregistry: move private bits into private struct
Tim-Philipp Müller [Mon, 26 Dec 2011 18:41:13 +0000 (18:41 +0000)]
registry: move private bits into private struct

12 years agovalue: micro-optimisation: avoid some unnecessary g_value_unset()
Tim-Philipp Müller [Mon, 26 Dec 2011 11:26:05 +0000 (11:26 +0000)]
value: micro-optimisation: avoid some unnecessary g_value_unset()

We know there's nothing to do here and can save us the function
calls and GValueTable lookups.

12 years agolibs: remove gdp dataprotocol library
Tim-Philipp Müller [Sun, 25 Dec 2011 23:41:03 +0000 (23:41 +0000)]
libs: remove gdp dataprotocol library

Made private and moved to gdp plugin in -base for
the time being, until we figure out what we do with
gdp and 0.11.

12 years agotests: fix unused-variable compiler warning
Tim-Philipp Müller [Sun, 25 Dec 2011 21:02:41 +0000 (21:02 +0000)]
tests: fix unused-variable compiler warning

12 years agowin32: update exports for new API
Tim-Philipp Müller [Sun, 25 Dec 2011 21:01:43 +0000 (21:01 +0000)]
win32: update exports for new API

12 years agodocs: add the start of a design document for controller
Stefan Sauer [Sun, 25 Dec 2011 19:49:41 +0000 (20:49 +0100)]
docs: add the start of a design document for controller

12 years agocontroller: split and cleanup the tests
Stefan Sauer [Sun, 25 Dec 2011 17:49:01 +0000 (18:49 +0100)]
controller: split and cleanup the tests

The controller object was once copied from buzztards unit tests. Change
TestMonoSource to TestObj as it is not a full fledged element. Split the tests
into a core and library test suite.

12 years agocontroller: move GValue handling from control-sources to -binding
Stefan Sauer [Thu, 22 Dec 2011 22:48:30 +0000 (23:48 +0100)]
controller: move GValue handling from control-sources to -binding

ControlSources are now gdouble based. A control source is mapped to a
particullar GObject property using a ControlBinding.

12 years agocontroller: move GstControlledProperty into a separate class
Stefan Sauer [Tue, 20 Dec 2011 21:36:18 +0000 (22:36 +0100)]
controller: move GstControlledProperty into a separate class

Add a GstControlBinding class. This is a preparation for making the
controlsources generate double valued control curves and do the gparamspec
mapping in the control binding. Now the API in GstObject is again mostly
for convenience.

12 years agoMerge remote-tracking branch 'origin/master' into 0.11
Tim-Philipp Müller [Sun, 25 Dec 2011 12:47:55 +0000 (12:47 +0000)]
Merge remote-tracking branch 'origin/master' into 0.11

Conflicts:
plugins/elements/gstfilesrc.c

12 years agofilesrc: return any remaining data on EOS before returning FLOW_UNEXPECTED
Tim-Philipp Müller [Sun, 25 Dec 2011 12:39:49 +0000 (12:39 +0000)]
filesrc: return any remaining data on EOS before returning FLOW_UNEXPECTED

12 years agofilesrc: minor cosmetic changes
Tim-Philipp Müller [Sun, 25 Dec 2011 12:29:46 +0000 (12:29 +0000)]
filesrc: minor cosmetic changes

Rename woffset variable, maintain separate bytes_read in addition
to length variable.

12 years agocollectpads2: fix up compilation after merge
Tim-Philipp Müller [Sun, 25 Dec 2011 12:13:57 +0000 (12:13 +0000)]
collectpads2: fix up compilation after merge

12 years agoMerge remote-tracking branch 'origin/master' into 0.11
Tim-Philipp Müller [Sun, 25 Dec 2011 11:58:12 +0000 (11:58 +0000)]
Merge remote-tracking branch 'origin/master' into 0.11

Conflicts:
libs/gst/base/gstbasetransform.c
libs/gst/controller/gstinterpolationcontrolsource.c
libs/gst/controller/gstlfocontrolsource.c
plugins/elements/gstfilesrc.c

Dit not merge controller or basetransform changes.

12 years agoporting: update porting-to-0.11
Thiago Santos [Sat, 24 Dec 2011 17:59:16 +0000 (14:59 -0300)]
porting: update porting-to-0.11

Update gst_pad_get_caps -> gst_pad_query_caps change

12 years agobufferpool: cleanup metadata in reset_buffer
Wim Taymans [Fri, 23 Dec 2011 14:37:45 +0000 (15:37 +0100)]
bufferpool: cleanup metadata in reset_buffer

Use the reset_buffer vmethod to remove the unpooled metadata from the buffer.

12 years agodef: update for new symbols
Wim Taymans [Thu, 22 Dec 2011 15:00:28 +0000 (16:00 +0100)]
def: update for new symbols

12 years agobufferpool: handle metadata in the pool
Wim Taymans [Thu, 22 Dec 2011 14:55:29 +0000 (15:55 +0100)]
bufferpool: handle metadata in the pool

Mark all metadata on the allocated buffers with a POOLED flag. When a buffer
returns to the pool, remove all metadata that did not have the POOLED flag. This
makes sure that we never leave unknown metadata to the buffers in the pool.

12 years agobuffer: add foreach function for the metadata
Wim Taymans [Thu, 22 Dec 2011 14:54:03 +0000 (15:54 +0100)]
buffer: add foreach function for the metadata

12 years agobufferlist: small doc fix
Wim Taymans [Thu, 22 Dec 2011 14:53:19 +0000 (15:53 +0100)]
bufferlist: small doc fix

12 years agometa: add metadata flags
Wim Taymans [Thu, 22 Dec 2011 14:52:08 +0000 (15:52 +0100)]
meta: add metadata flags

Add metadata flags so that we can set extra properties of the metadata

12 years agopipeline: only have a top-level pipeline do pipeline management
Mark Nauwelaerts [Fri, 2 Dec 2011 13:10:32 +0000 (14:10 +0100)]
pipeline: only have a top-level pipeline do pipeline management

Fixes #665390.

12 years agocontroller: fix GType name of interpolation mode enum
Tim-Philipp Müller [Thu, 22 Dec 2011 11:08:42 +0000 (11:08 +0000)]
controller: fix GType name of interpolation mode enum

12 years agodef: update
Wim Taymans [Wed, 21 Dec 2011 10:13:47 +0000 (11:13 +0100)]
def: update

12 years agocaps: rename variable for consistency
Wim Taymans [Wed, 21 Dec 2011 10:08:34 +0000 (11:08 +0100)]
caps: rename variable for consistency

Rename the variable for GST_CAPS_NONE to _gst_caps_none for consistency and to
hie the fact that NONE caps are also accidentally empty caps.

12 years agobasetransform: If the filtered peer caps are already empty error out early
Sebastian Dröge [Mon, 19 Dec 2011 13:27:47 +0000 (14:27 +0100)]
basetransform: If the filtered peer caps are already empty error out early

12 years agodef: update defs
Wim Taymans [Tue, 20 Dec 2011 12:21:36 +0000 (13:21 +0100)]
def: update defs

12 years agocaps: add ANY and EMPTY singletons
Wim Taymans [Tue, 20 Dec 2011 12:14:07 +0000 (13:14 +0100)]
caps: add ANY and EMPTY singletons

Add a singleton for ANY and EMPTY caps and make the GST_CAPS_ANY and
GST_CAPS_NONE point to them. This makes the API more consistent now
that the macro does not magically create a ref. It also solves some leaks in
places where the macro was used to register a padtemplate.

12 years agoremove const in gst_type_find_register()
Wim Taymans [Tue, 20 Dec 2011 12:13:04 +0000 (13:13 +0100)]
remove const in gst_type_find_register()

Remove the const from the GstCaps in gst_type_find_register() because the
function takes a ref to the caps.

12 years agodefs: update
Wim Taymans [Tue, 20 Dec 2011 11:59:37 +0000 (12:59 +0100)]
defs: update

12 years agocontroller: remove unused parent_class varriable from controlsource
Stefan Sauer [Tue, 20 Dec 2011 10:38:19 +0000 (11:38 +0100)]
controller: remove unused parent_class varriable from controlsource

12 years agocontroller: cleanup interpolation modes
Stefan Sauer [Mon, 19 Dec 2011 22:32:57 +0000 (23:32 +0100)]
controller: cleanup interpolation modes

Remove deprecated/unimplemented modes. Turn interpolation mode into a gobject
property. Update docs and examples.

12 years agocontrolsources: refactor interpolation control source
Stefan Sauer [Mon, 19 Dec 2011 10:13:45 +0000 (11:13 +0100)]
controlsources: refactor interpolation control source

Move most of the code to a GstTimedValueControlSource. Split out the trigger
'interpolation mode' to a new control source class. Move tests and examples to
new api. Update docs.

Fixes #610338

12 years agocontrolsource: clean up lfo control source
Stefan Sauer [Mon, 19 Dec 2011 21:01:02 +0000 (22:01 +0100)]
controlsource: clean up lfo control source

Remove parent_class and use var from G_DEFINE_TYPE macro. Remove unused dispose
implementation.

12 years agowin32: add new collectpads2 function to .def file
Tim-Philipp Müller [Mon, 19 Dec 2011 20:57:44 +0000 (20:57 +0000)]
win32: add new collectpads2 function to .def file

12 years agocollectpads2: add convenience clipping function
Mark Nauwelaerts [Fri, 16 Dec 2011 16:59:22 +0000 (17:59 +0100)]
collectpads2: add convenience clipping function

... which also converts to running time; useful for typical muxer.

12 years agobasetransform: do not delay sparse stream newsegment updates
Mark Nauwelaerts [Mon, 19 Dec 2011 16:38:18 +0000 (17:38 +0100)]
basetransform: do not delay sparse stream newsegment updates

12 years agomemory: make subclasses add other flags
Wim Taymans [Mon, 19 Dec 2011 16:00:18 +0000 (17:00 +0100)]
memory: make subclasses add other flags

Add GST_MAP_FLAG_LAST so that implementations can add additional flags when
mapping memory.