platform/upstream/gstreamer.git
12 years agotrace: don't use deprecated GStaticMutex API in (still) public header
Tim-Philipp Müller [Sun, 22 Jan 2012 00:42:34 +0000 (00:42 +0000)]
trace: don't use deprecated GStaticMutex API in (still) public header

12 years agocontroller: improve control binding handling
Stefan Sauer [Fri, 20 Jan 2012 13:42:31 +0000 (14:42 +0100)]
controller: improve control binding handling

Change _set_control_binding to _add_control_binding and take ownership. Add a
_remove_control_binding function.

12 years agocontroller: remove convenience api for control sources
Stefan Sauer [Fri, 20 Jan 2012 07:27:57 +0000 (08:27 +0100)]
controller: remove convenience api for control sources

This is needed to support multiple kinds of control-bindings.

12 years agobasesrc: handle NULL from getcaps
Wim Taymans [Thu, 19 Jan 2012 14:17:58 +0000 (15:17 +0100)]
basesrc: handle NULL from getcaps

If the getcaps functions returns NULL, return FALSE from the CAPS query.

12 years agobasesink: handle lists correctly
Wim Taymans [Thu, 19 Jan 2012 14:17:33 +0000 (15:17 +0100)]
basesink: handle lists correctly

12 years agomemory improvements
Wim Taymans [Thu, 19 Jan 2012 08:12:05 +0000 (09:12 +0100)]
memory improvements

Make the memory object simply manage the data pointer and the maxsize and move
the offset and size handling to common functionality.
Use the READONLY flag to set a readonly lock.
Remove the data and size fields from the unmap method. We need an explicit
resize operation instead of using the unmap function.
Make internal helper lock and unlock functions.
Update unit test and users of the old API.

12 years agodocs: fix typo in bus docs
Tim-Philipp Müller [Thu, 19 Jan 2012 11:43:53 +0000 (11:43 +0000)]
docs: fix typo in bus docs

12 years ago.gitignore: add visual studio IDE files and OS X .DS_Store files
Matej Knopp [Fri, 13 Jan 2012 22:45:17 +0000 (17:45 -0500)]
.gitignore: add visual studio IDE files and OS X .DS_Store files

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

12 years agoUpdate for new gthread API
Wim Taymans [Thu, 19 Jan 2012 08:27:04 +0000 (09:27 +0100)]
Update for new gthread API

12 years agoconfigure.ac: GIO check is now in gst-glib2.m4
Sebastian Dröge [Wed, 18 Jan 2012 15:52:55 +0000 (16:52 +0100)]
configure.ac: GIO check is now in gst-glib2.m4

12 years agoAutomatic update of common submodule
Sebastian Dröge [Wed, 18 Jan 2012 15:45:51 +0000 (16:45 +0100)]
Automatic update of common submodule

From 0807187 to 2a59016

12 years agoconfigure.ac: Require GLib 2.31.10 and improve GIO check
Sebastian Dröge [Wed, 18 Jan 2012 15:14:51 +0000 (16:14 +0100)]
configure.ac: Require GLib 2.31.10 and improve GIO check

12 years agobasetransform: Always call ::propose_allocation vfunc
Sebastian Dröge [Wed, 18 Jan 2012 11:07:46 +0000 (12:07 +0100)]
basetransform: Always call ::propose_allocation vfunc

And only forward the allocation query if we're working in
passthrough mode if no ::propose_allocation is implemented.
In place buffer transformations will change the buffer
content and require explicit handling of all metas.

12 years agopad: Don't forward the allocation query by default
Sebastian Dröge [Wed, 18 Jan 2012 10:37:57 +0000 (11:37 +0100)]
pad: Don't forward the allocation query by default

This has to be handled explicitely by elements to
make sure that they support all the metas passed
in the allocation query.
Metas have to supported explicitely, otherwise the
query will fail. All elements in a chain need to
support a specific meta to allow its usage.

12 years agogst: suppress some more deprecated thread api until we fix it up
Tim-Philipp Müller [Wed, 18 Jan 2012 01:31:56 +0000 (01:31 +0000)]
gst: suppress some more deprecated thread api until we fix it up

Which should be soon, since we already depend on an unstable glib for -base.

12 years agowin32: update .def files for api changes
Tim-Philipp Müller [Wed, 18 Jan 2012 01:18:33 +0000 (01:18 +0000)]
win32: update .def files for api changes

12 years agoconfigure: remove --disable-net option and always build libgstnet
Tim-Philipp Müller [Tue, 17 Jan 2012 23:57:44 +0000 (23:57 +0000)]
configure: remove  --disable-net option and always build libgstnet

It should work everywhere now, and -base and -good depend on
the GstNetMeta API.

12 years agoconfigure: remove some socket cruft
Tim-Philipp Müller [Tue, 17 Jan 2012 23:52:07 +0000 (23:52 +0000)]
configure: remove some socket cruft

12 years agonet: port to use gio's networking API
Tim-Philipp Müller [Wed, 5 May 2010 15:33:51 +0000 (16:33 +0100)]
net: port to use gio's networking API

Some warts still, but it's a start.

12 years agonet: Add GIO to the gi-scanner packages
Sebastian Dröge [Tue, 17 Jan 2012 15:50:13 +0000 (16:50 +0100)]
net: Add GIO to the gi-scanner packages

12 years agonetaddressmeta: Use GSocketAddress instead of our own wrapper type
Sebastian Dröge [Mon, 16 Jan 2012 12:34:28 +0000 (13:34 +0100)]
netaddressmeta: Use GSocketAddress instead of our own wrapper type

12 years agomemory: make writability check into a method
Wim Taymans [Mon, 16 Jan 2012 14:57:35 +0000 (15:57 +0100)]
memory: make writability check into a method

Use a method to check for writability instead of a macro so that we can change
the implementation more easily.

12 years agotests: improve memory test
Wim Taymans [Mon, 16 Jan 2012 11:24:48 +0000 (12:24 +0100)]
tests: improve memory test

12 years agobuffer: improve docs
Wim Taymans [Mon, 16 Jan 2012 11:24:20 +0000 (12:24 +0100)]
buffer: improve docs

12 years agoadapter: ensure automagic _unmap in some more cases
Mark Nauwelaerts [Wed, 11 Jan 2012 09:59:53 +0000 (10:59 +0100)]
adapter: ensure automagic _unmap in some more cases

12 years agoadapter: automatically unmap on clearing
Vincent Penquerc'h [Tue, 15 Nov 2011 17:42:56 +0000 (17:42 +0000)]
adapter: automatically unmap on clearing

When _clear gets called between _map and _unmap, buffers
will be unreffed. If the adapter was mapped, memory leaks
may occur.
While calling _clear between _map and _unmap does not seem
like such a great idea, this is possible in the audio
encoder base class, as _clear may be called in _finish_frame.
Since the audio encoder relies on flushing to keep track of
timestamps, delaying flushing till after handle_frame seems
dangerous.
So, we unmap on clear, as the next unmap will do nothing.
This makes _clear safe to call between _map and _unmap,
while avoiding leaking the mapped buffer.

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

12 years agobasesrc: prevent unlikely caps leak
Mark Nauwelaerts [Fri, 13 Jan 2012 13:20:33 +0000 (14:20 +0100)]
basesrc: prevent unlikely caps leak

12 years agoMerge remote-tracking branch 'origin/master' into 0.11
Tim-Philipp Müller [Fri, 13 Jan 2012 00:22:03 +0000 (00:22 +0000)]
Merge remote-tracking branch 'origin/master' into 0.11

Conflicts:
tools/gst-inspect.c

12 years agoRemove GST_TYPE_DATE, our own GDate type
Tim-Philipp Müller [Thu, 12 Jan 2012 20:46:27 +0000 (20:46 +0000)]
Remove GST_TYPE_DATE, our own GDate type

Which we had to add because GLib didn't have it
back in the day. Port everything to plain old
G_TYPE_DATE, which is also a boxed type. Ideally
we'd just use GDateTime for everything, but it
doesn't support not setting some of the fields
unfortuntely (which would be very useful for
tag handling in general, if we could express
2012-01 for example).

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

12 years agobaseparse: clear adapter in reset so baseparse is reusable
Antoine Tremblay [Thu, 12 Jan 2012 19:53:11 +0000 (19:53 +0000)]
baseparse: clear adapter in reset so baseparse is reusable

GstBaseParse was not clearing its adapter on reset causing
problems when a pipeline went for example from PLAYING to NULL
state and then back to PLAYING again. The data from the last
stream would be used in the parser.

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

12 years agogstinspect: fix features and list leaks
Vincent Penquerc'h [Thu, 12 Jan 2012 15:50:53 +0000 (15:50 +0000)]
gstinspect: fix features and list leaks

12 years agowin32: add new API to .def file
Edward Hervey [Thu, 12 Jan 2012 10:03:10 +0000 (11:03 +0100)]
win32: add new API to .def file

12 years agogststructure: clarify _get docs about the returned reference
Vincent Penquerc'h [Wed, 11 Jan 2012 12:19:20 +0000 (12:19 +0000)]
gststructure: clarify _get docs about the returned reference

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

12 years agoMerge branch 'master' into 0.11
Sebastian Dröge [Tue, 10 Jan 2012 12:00:07 +0000 (13:00 +0100)]
Merge branch 'master' into 0.11

12 years agotypefind: Send caps again after activation
Edward Hervey [Fri, 6 Jan 2012 15:39:04 +0000 (16:39 +0100)]
typefind: Send caps again after activation

Avoids ending up in cases where typefind gets activated in pull-mode
and caps never get sent.

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

12 years agoAdd latest specfile changes
Christian Fredrik Kalager Schaller [Mon, 9 Jan 2012 15:59:09 +0000 (15:59 +0000)]
Add latest specfile changes

12 years agoAlso add headerfile
Christian Fredrik Kalager Schaller [Mon, 9 Jan 2012 15:58:45 +0000 (15:58 +0000)]
Also add headerfile

12 years agoFix dotfile API to be exported since macros can't be GI bound
Christian Fredrik Kalager Schaller [Mon, 9 Jan 2012 15:57:51 +0000 (15:57 +0000)]
Fix dotfile API to be exported since macros can't be GI bound

12 years agotests: ignore new memory test binary
Tim-Philipp Müller [Mon, 9 Jan 2012 13:19:04 +0000 (13:19 +0000)]
tests: ignore new memory test binary

12 years agoFix printf format build warnings
Matej Knopp [Mon, 9 Jan 2012 08:14:41 +0000 (03:14 -0500)]
Fix printf format build warnings

12 years agopo: update translations for new strings
Tim-Philipp Müller [Mon, 9 Jan 2012 13:10:10 +0000 (13:10 +0000)]
po: update translations for new strings

12 years agogstvalue: Allow NULL dest when subtracting bitmask
Edward Hervey [Fri, 6 Jan 2012 14:01:24 +0000 (15:01 +0100)]
gstvalue: Allow NULL dest when subtracting bitmask

Happens when checking for subsets of caps

12 years agobuffer: ensure writable memory in memset
Wim Taymans [Fri, 6 Jan 2012 12:32:55 +0000 (13:32 +0100)]
buffer: ensure writable memory in memset

12 years agomemory: check semantics of nested mappings
Wim Taymans [Fri, 6 Jan 2012 12:10:18 +0000 (13:10 +0100)]
memory: check semantics of nested mappings

Count how many mappings are currently active and also with what access pattern.
Update the design doc with restrictions on the access patterns for nested
mappings.
Check if nested mappings obey the access mode restrictions of the design doc.
Add various unit tests to check the desired behaviour.

12 years agoqueue2: unmap with the right data pointer
Wim Taymans [Fri, 6 Jan 2012 12:06:32 +0000 (13:06 +0100)]
queue2: unmap with the right data pointer

Use the original data pointer to unmap the buffer memory.

12 years agodocs: improve memory docs
Wim Taymans [Fri, 6 Jan 2012 09:39:46 +0000 (10:39 +0100)]
docs: improve memory docs

12 years agomemory: handle -1 size in unmap
Wim Taymans [Fri, 6 Jan 2012 06:02:36 +0000 (07:02 +0100)]
memory: handle -1 size in unmap

handle -1 in unmap correctly when the offset is modified.

12 years agomemory: improve semantics of unmap
Wim Taymans [Fri, 6 Jan 2012 05:43:08 +0000 (06:43 +0100)]
memory: improve semantics of unmap

Make an unmap call with a different data pointer than the map call update the
offset field. This allows for both offset and size adjustements in the unmap
call.

12 years agobasesink: don't compensate for render-delay twice
Havard Graff [Tue, 29 Nov 2011 13:22:44 +0000 (14:22 +0100)]
basesink: don't compensate for render-delay twice

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

12 years agomemory: add more checks
Wim Taymans [Thu, 5 Jan 2012 17:15:20 +0000 (18:15 +0100)]
memory: add more checks

Add check for mapping and resizing

12 years agomemory: take offset into account
Wim Taymans [Thu, 5 Jan 2012 16:28:28 +0000 (17:28 +0100)]
memory: take offset into account

Take the offset into account whem mapping and unmapping the buffer.

12 years agodocs: clarify resize and current mappings
Wim Taymans [Thu, 5 Jan 2012 16:02:48 +0000 (17:02 +0100)]
docs: clarify resize and current mappings

12 years agomemory: clarify nested mappings, add unit test
Wim Taymans [Thu, 5 Jan 2012 15:41:58 +0000 (16:41 +0100)]
memory: clarify nested mappings, add unit test

12 years agowin32: add new API to .def file
Tim-Philipp Müller [Thu, 5 Jan 2012 12:30:00 +0000 (12:30 +0000)]
win32: add new API to .def file

12 years agotests: add more memory unit tests
Wim Taymans [Thu, 5 Jan 2012 12:22:42 +0000 (13:22 +0100)]
tests: add more memory unit tests

Check for unmap with invalid size

12 years agotests: add unit test for GstMemory
Wim Taymans [Thu, 5 Jan 2012 12:11:05 +0000 (13:11 +0100)]
tests: add unit test for GstMemory

Add a GstMemory unit test
Add some more asserts in GstMemory to catch invalid cases.

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 agobuild: don't output configure options via autogen if $NOCONFIGURE is set
Idar Tollefsen [Sun, 1 Jan 2012 15:32:27 +0000 (16:32 +0100)]
build: don't output configure options via autogen if $NOCONFIGURE is set

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

12 years agogst: include locale.h before any other i18n headers
Tim-Philipp Müller [Thu, 5 Jan 2012 00:30:30 +0000 (00:30 +0000)]
gst: include locale.h before any other i18n headers

This is also how we do it in -base.

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

12 years agogstconfig.h: adds and uses SunPro visibility attribute for proper function exports
Idar Tollefsen [Sun, 1 Jan 2012 15:46:04 +0000 (16:46 +0100)]
gstconfig.h: adds and uses SunPro visibility attribute for proper function exports

Define GST_EXPORT for SunPro.

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

12 years agoplugins: explicitly cast initialization values to the correct type
Idar Tollefsen [Sun, 1 Jan 2012 15:47:14 +0000 (16:47 +0100)]
plugins: explicitly cast initialization values to the correct type

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

12 years agopoll: include correct poll.h based on autoconf test
Idar Tollefsen [Sun, 1 Jan 2012 19:17:41 +0000 (20:17 +0100)]
poll: include correct poll.h based on autoconf test

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

12 years agoconfigure: check for sys/poll.h
Tim-Philipp Müller [Wed, 4 Jan 2012 23:46:19 +0000 (23:46 +0000)]
configure: check for sys/poll.h

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

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.