platform/upstream/gstreamer.git
12 years agodentity: remove prepare_output_buffer
Wim Taymans [Thu, 2 Feb 2012 12:15:24 +0000 (13:15 +0100)]
dentity: remove prepare_output_buffer

Correctly mark passthrough on the baseclass so that it can correctly do the
allocation of the output buffers.
Remove our custom prepare_output_buffer function now that the baseclass is
smarter.

12 years agobasetransform: improve prepare_output_buffer
Wim Taymans [Thu, 2 Feb 2012 12:10:27 +0000 (13:10 +0100)]
basetransform: improve prepare_output_buffer

Clean up the prepare_output_buffer function.
Reuse the input buffer when it is writable and when doing an
in-place but non-passthrough transform.
Move the copy-metadata function call to the prepare_output_buffer default
function. If subclasses implement a custom prepare_output_buffer, they must also
copy the metadata themselves.
Remove a useless memory copy because prepare_output_buffer already did that.

12 years agoidentity: only map when using the memory
Wim Taymans [Thu, 2 Feb 2012 11:32:49 +0000 (12:32 +0100)]
identity: only map when using the memory

12 years agoplugins: proxy allocation query
Wim Taymans [Thu, 2 Feb 2012 11:32:07 +0000 (12:32 +0100)]
plugins: proxy allocation query

12 years agobasetransform: simplify code
Wim Taymans [Thu, 2 Feb 2012 11:30:14 +0000 (12:30 +0100)]
basetransform: simplify code

We already checked passthrough a few lines above.

12 years agomemory: add some performce debug info
Wim Taymans [Thu, 2 Feb 2012 11:07:28 +0000 (12:07 +0100)]
memory: add some performce debug info

Add some PERFORMANCE debug lines where we copy and do other suboptimal things.

12 years agopad: add flag to proxy allocation query
Wim Taymans [Thu, 2 Feb 2012 11:05:37 +0000 (12:05 +0100)]
pad: add flag to proxy allocation query

Add a flag to force the default query handler to forward the allocation query
instead of discarding it.
Reorder the pad flags a bit.

12 years agotypefind: pass extensions as comma-separated list in a simple string
Tim-Philipp Müller [Thu, 2 Feb 2012 01:30:12 +0000 (01:30 +0000)]
typefind: pass extensions as comma-separated list in a simple string

Fix annoying gst_type_find_register() function signature. A simple
string with comma-separated extensions works just as well and saves
lines of code, casts, relocations and ultimately kittens.

12 years agobasesrc: fix race in startup
Wim Taymans [Tue, 31 Jan 2012 16:41:13 +0000 (17:41 +0100)]
basesrc: fix race in startup

Mark renegotiate before starting the pushing thread.
Do also check if we are starting in the get_range function.

12 years agoelement: don't crash on missing template
Wim Taymans [Tue, 31 Jan 2012 15:27:55 +0000 (16:27 +0100)]
element: don't crash on missing template

Some request pads don't have a padtemplate (mostly those from encodebin). Avoid
crashing in this case.

12 years agocontroller: constructures for control sources return GstControlSource
Stefan Sauer [Tue, 31 Jan 2012 11:20:41 +0000 (12:20 +0100)]
controller: constructures for control sources return GstControlSource

Don't return the specific types. In most cases there is no specific api there
anyway.

12 years agodon't do logic in g_assert...
Wim Taymans [Tue, 31 Jan 2012 11:10:21 +0000 (12:10 +0100)]
don't do logic in g_assert...

12 years agocontroller: rename control-bindings
Stefan Sauer [Mon, 30 Jan 2012 18:17:00 +0000 (19:17 +0100)]
controller: rename control-bindings

gst_control_binding_xxx -> gst_xxx_control_binding for consistency.

12 years agocontrolsource: sink the floating ref
Stefan Sauer [Mon, 30 Jan 2012 17:17:34 +0000 (18:17 +0100)]
controlsource: sink the floating ref

control sources can be used on several control bindings.

12 years agobuffer; remove IN_CAPS buffer flag
Wim Taymans [Mon, 30 Jan 2012 16:15:21 +0000 (17:15 +0100)]
buffer; remove IN_CAPS buffer flag

The IN_CAPS buffer flag is deprecated and should be replaced with the HEADER
flag.

12 years agodefs; update for new api
Wim Taymans [Mon, 30 Jan 2012 15:09:03 +0000 (16:09 +0100)]
defs; update for new api

12 years agoquery: pass allocator in query
Wim Taymans [Mon, 30 Jan 2012 14:59:02 +0000 (15:59 +0100)]
query: pass allocator in query

Place the allocator object in the ALLOCATION query instead of the name. This
allows us to exchange allocators that are not in the global pool of allocators.
Update elements for the new api

12 years agomemory: add memory type
Wim Taymans [Mon, 30 Jan 2012 14:57:39 +0000 (15:57 +0100)]
memory: add memory type

Add memory type when registering memory allocators. Add getter for the memory
type.

12 years agovalve: Repush sticky events after disabling dropping
Olivier Crête [Sun, 29 Jan 2012 22:58:51 +0000 (22:58 +0000)]
valve: Repush sticky events after disabling dropping

12 years agomemory: add boxed GType for the allocator
Wim Taymans [Mon, 30 Jan 2012 12:28:34 +0000 (13:28 +0100)]
memory: add boxed GType for the allocator

12 years agomemory: make the allocator refcounted
Wim Taymans [Mon, 30 Jan 2012 12:02:13 +0000 (13:02 +0100)]
memory: make the allocator refcounted

Add refcounting to the GstAllocator object.
Remove const from functions because the allocator is refcounted now.
Rename the vmethods for consistency
Expose the constructor for GstAllocator and add a destroy notify for the
user_data. This should make it possible to create allocators that are not
registered and shared globally along with the possibility to destroy them
properly.
Update defs with new symbols.

12 years agodefs: update for gap event
Wim Taymans [Mon, 30 Jan 2012 09:30:58 +0000 (10:30 +0100)]
defs: update for gap event

12 years agocore: don't ship gsttrace.h private header
Philippe Normand [Mon, 30 Jan 2012 09:07:51 +0000 (10:07 +0100)]
core: don't ship gsttrace.h private header

Include it explicitely in gst.c and no longer include it in gst.h.
That header was made private in 1969b94267b4f377ea2663876ae8720717889693.

12 years agoevent: require a valid duration for the GAP event
Tim-Philipp Müller [Sat, 28 Jan 2012 18:50:23 +0000 (18:50 +0000)]
event: require a valid duration for the GAP event

12 years agogst: ref new enum type in gst_init()
Tim-Philipp Müller [Sat, 28 Jan 2012 18:49:44 +0000 (18:49 +0000)]
gst: ref new enum type in gst_init()

12 years agodocs: add some (out) annotations for stream config parser functions
Tim-Philipp Müller [Fri, 27 Jan 2012 18:57:21 +0000 (18:57 +0000)]
docs: add some (out) annotations for stream config parser functions

12 years agoevent: add constructor and parse function for new GAP event
Tim-Philipp Müller [Fri, 27 Jan 2012 18:56:01 +0000 (18:56 +0000)]
event: add constructor and parse function for new GAP event

(Whatever you do, don't mention the filler event.)

12 years agodocs: GST_EVENT_STREAM_CONFIG is implemented now
Tim-Philipp Müller [Fri, 27 Jan 2012 18:37:13 +0000 (18:37 +0000)]
docs: GST_EVENT_STREAM_CONFIG is implemented now

12 years agodocs: mention codec data / stream header change in porting docs
Tim-Philipp Müller [Fri, 27 Jan 2012 17:57:58 +0000 (17:57 +0000)]
docs: mention codec data / stream header change in porting docs

12 years agoUse macros to register boxed types thread safely
Olivier Crête [Sat, 28 Jan 2012 14:35:51 +0000 (14:35 +0000)]
Use macros to register boxed types thread safely

12 years agocheck: Update gst_check_element_push_buffer to 0.11 style caps
Olivier Crête [Sat, 28 Jan 2012 07:38:03 +0000 (08:38 +0100)]
check: Update gst_check_element_push_buffer to 0.11 style caps

Pass the desired caps explicitely

12 years agogst-inspect: Fix memory leak
Sebastian Dröge [Fri, 27 Jan 2012 18:00:03 +0000 (19:00 +0100)]
gst-inspect: Fix memory leak

12 years agogst-inspect: Don't unref plugin features multiple times
Sebastian Dröge [Fri, 27 Jan 2012 17:53:45 +0000 (18:53 +0100)]
gst-inspect: Don't unref plugin features multiple times

gst_plugin_feature_list_free() unrefs them too.

12 years agodocs: add new stream config functions to docs
Tim-Philipp Müller [Fri, 27 Jan 2012 17:50:38 +0000 (17:50 +0000)]
docs: add new stream config functions to docs

12 years agotests: fix simple-launch-lines compilation
Tim-Philipp Müller [Fri, 27 Jan 2012 17:49:48 +0000 (17:49 +0000)]
tests: fix simple-launch-lines compilation

Don't use removed API.

12 years agosegment: Add padding to the public struct
Sebastian Dröge [Fri, 27 Jan 2012 17:46:49 +0000 (18:46 +0100)]
segment: Add padding to the public struct

12 years agogst: don't ref GType for private enum for which there's no GType any more
Tim-Philipp Müller [Fri, 27 Jan 2012 17:45:39 +0000 (17:45 +0000)]
gst: don't ref GType for private enum for which there's no GType any more

12 years agowin32: update .def for new and removed API
Tim-Philipp Müller [Fri, 27 Jan 2012 17:45:15 +0000 (17:45 +0000)]
win32: update .def for new and removed API

12 years agoevent: add construct and parse API for the new STREAM CONFIG event
Tim-Philipp Müller [Fri, 27 Jan 2012 17:39:12 +0000 (17:39 +0000)]
event: add construct and parse API for the new STREAM CONFIG event

codec data and stream headers don't belong into caps, since they
are not negotiated. We signal them using the STREAM CONFIG event
instead.

12 years agotrace: remove from public headers
Wim Taymans [Fri, 27 Jan 2012 17:24:43 +0000 (18:24 +0100)]
trace: remove from public headers

12 years agocaps: fix documenation typo
Andoni Morales Alastruey [Fri, 27 Jan 2012 11:16:05 +0000 (12:16 +0100)]
caps: fix documenation typo

12 years agotrace: rework alloc tracing
Wim Taymans [Fri, 27 Jan 2012 16:50:42 +0000 (17:50 +0100)]
trace: rework alloc tracing

Remove trace, we use debug log for that
Make alloc trace simpler, removing some methods.
Activate alloc trace with a GST_TRACE=3 environment variable.
Dump leaked objects atexit.
Provide an offset in the object where the GType can be found so that more
verbose info can be given for objects.
Remove -T option from gst-launch because tracing is now triggered with the
environment variable.

12 years agotypefind: answer caps queries with our typefound caps
Vincent Penquerc'h [Wed, 25 Jan 2012 12:35:43 +0000 (12:35 +0000)]
typefind: answer caps queries with our typefound caps

This avoids merely forwarding the event to the sink, and getting
something useless such as ANY.

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

12 years agotypefind: Do typefinding from a separate thread and not from the state change function
Sebastian Dröge [Fri, 27 Jan 2012 15:18:00 +0000 (16:18 +0100)]
typefind: Do typefinding from a separate thread and not from the state change function

12 years agoqueue2: fix memory leak
Wim Taymans [Fri, 27 Jan 2012 14:32:37 +0000 (15:32 +0100)]
queue2: fix memory leak

unmap the buffer memory on errors.

12 years agotrace: make alloc trace work for miniobject again
Wim Taymans [Fri, 27 Jan 2012 14:32:18 +0000 (15:32 +0100)]
trace: make alloc trace work for miniobject again

12 years agoMerge branch 'master' into 0.11
Sebastian Dröge [Fri, 27 Jan 2012 14:09:35 +0000 (15:09 +0100)]
Merge branch 'master' into 0.11

Conflicts:
libs/gst/base/gstcollectpads2.c
libs/gst/base/gstcollectpads2.h

12 years agocollectpads2: Move private fields from the public structs to private structs
Sebastian Dröge [Fri, 27 Jan 2012 14:02:52 +0000 (15:02 +0100)]
collectpads2: Move private fields from the public structs to private structs

Fixes bug #668764.

12 years agocontroller: no fancy utf8 chars in the gi annotations
Stefan Sauer [Fri, 27 Jan 2012 12:05:48 +0000 (13:05 +0100)]
controller: no fancy utf8 chars in the gi annotations

12 years agotests: fix some more leaks
Wim Taymans [Fri, 27 Jan 2012 11:50:24 +0000 (12:50 +0100)]
tests: fix some more leaks

12 years agoqueue2: Fix handling of the new stream-start event
Sebastian Dröge [Fri, 27 Jan 2012 11:33:32 +0000 (12:33 +0100)]
queue2: Fix handling of the new stream-start event

12 years agogstplugin: add a few consts to read only data
Vincent Penquerc'h [Fri, 27 Jan 2012 11:32:12 +0000 (11:32 +0000)]
gstplugin: add a few consts to read only data

12 years agocontroller: add gi annotations
Stefan Sauer [Fri, 27 Jan 2012 11:22:48 +0000 (12:22 +0100)]
controller: add gi annotations

12 years agoutils: Fix unit test
Sebastian Dröge [Fri, 27 Jan 2012 11:14:28 +0000 (12:14 +0100)]
utils: Fix unit test

12 years agotests: fix leaks
Wim Taymans [Fri, 27 Jan 2012 11:10:09 +0000 (12:10 +0100)]
tests: fix leaks

12 years agomemory: avoid memory leak
Wim Taymans [Fri, 27 Jan 2012 10:40:37 +0000 (11:40 +0100)]
memory: avoid memory leak

Unref the old memory in make_mapped.
Add some debug info

12 years agobasetransform: avoid caps leak
Wim Taymans [Fri, 27 Jan 2012 10:40:05 +0000 (11:40 +0100)]
basetransform: avoid caps leak

12 years agoidentity/fake{src,sink}: Include event type name in the debug output
Sebastian Dröge [Fri, 27 Jan 2012 10:01:27 +0000 (11:01 +0100)]
identity/fake{src,sink}: Include event type name in the debug output

12 years agoevent: Mark the new GAP event as non-sticky
Sebastian Dröge [Fri, 27 Jan 2012 09:54:56 +0000 (10:54 +0100)]
event: Mark the new GAP event as non-sticky

12 years agocollectpads2: Drop the stream-start and stream-config events by default
Sebastian Dröge [Fri, 27 Jan 2012 09:46:02 +0000 (10:46 +0100)]
collectpads2: Drop the stream-start and stream-config events by default

12 years agoevent rebase
Sebastian Dröge [Fri, 27 Jan 2012 09:42:09 +0000 (10:42 +0100)]
event rebase

12 years agobasesrc: Send the stream-start event as first event ever
Sebastian Dröge [Fri, 27 Jan 2012 09:41:07 +0000 (10:41 +0100)]
basesrc: Send the stream-start event as first event ever

12 years agoevent: Add constructor and docs for the new STREAM_START event
Sebastian Dröge [Fri, 27 Jan 2012 09:30:43 +0000 (10:30 +0100)]
event: Add constructor and docs for the new STREAM_START event

12 years agopad: add user data to chain functions
Wim Taymans [Thu, 26 Jan 2012 18:28:01 +0000 (19:28 +0100)]
pad: add user data to chain functions

12 years agobasetransform: fix typo
Wim Taymans [Thu, 26 Jan 2012 17:56:14 +0000 (18:56 +0100)]
basetransform: fix typo

12 years agotaglist: restore date/time type to GstDateTime
Vincent Penquerc'h [Thu, 26 Jan 2012 18:22:29 +0000 (18:22 +0000)]
taglist: restore date/time type to GstDateTime

The change to GDateTime was apparently accidental, and
breaks plugins trying to feed a GstDateTime to the taglist APi.

12 years agogst: gst_parse_launch now returns a floating reference
Peteris Krisjanis [Thu, 26 Jan 2012 17:12:16 +0000 (19:12 +0200)]
gst: gst_parse_launch now returns a floating reference

12 years agogststructure: Set "transfer none" to return values that shouldn't be freed
Edward Hervey [Thu, 26 Jan 2012 17:53:51 +0000 (18:53 +0100)]
gststructure: Set "transfer none" to return values that shouldn't be freed

12 years agoelement: call ->release_pad() to clean up pad
David Schleef [Sun, 5 Dec 2010 02:53:55 +0000 (18:53 -0800)]
element: call ->release_pad() to clean up pad

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

12 years agoevent: add some more events
Wim Taymans [Thu, 26 Jan 2012 15:31:50 +0000 (16:31 +0100)]
event: add some more events

Add some more new events that we want to implement later.

12 years agogstmemory: add missing parameter
Andoni Morales Alastruey [Thu, 26 Jan 2012 14:15:21 +0000 (15:15 +0100)]
gstmemory: add missing parameter

12 years agocaps: Fix compiler warning
Sebastian Dröge [Thu, 26 Jan 2012 13:57:14 +0000 (14:57 +0100)]
caps: Fix compiler warning

12 years agocaps: Use correct size for caps allocation
Sebastian Dröge [Thu, 26 Jan 2012 13:55:30 +0000 (14:55 +0100)]
caps: Use correct size for caps allocation

12 years agocaps: Make GstCaps public struct more opaque by moving the private pointer into the...
Sebastian Dröge [Thu, 26 Jan 2012 13:45:30 +0000 (14:45 +0100)]
caps: Make GstCaps public struct more opaque by moving the private pointer into the implementation

12 years agocaps: Store a pointer to GstCaps in GstStaticCaps
Sebastian Dröge [Thu, 26 Jan 2012 13:33:12 +0000 (14:33 +0100)]
caps: Store a pointer to GstCaps in GstStaticCaps

...instead of using hackish subclass of GstCaps, which also
had some thread-safety problems.

12 years agoevent: remove the sticky event index
Wim Taymans [Thu, 26 Jan 2012 12:24:44 +0000 (13:24 +0100)]
event: remove the sticky event index

We don't use the sticky event index anymore, ordering of the events are how they
were sent initially.
Add some more padding between the event numbers so that we can insert new events
later.

12 years agodocs: remove collectpads from docs, fix build
Tim-Philipp Müller [Thu, 26 Jan 2012 10:48:02 +0000 (10:48 +0000)]
docs: remove collectpads from docs, fix build

12 years agobufferpool: use GstValueArray instead of GValueArray for storing options in the config
Tim-Philipp Müller [Thu, 26 Jan 2012 10:22:29 +0000 (10:22 +0000)]
bufferpool: use GstValueArray instead of GValueArray for storing options in the config

Since GValueArray is deprecated. It's all only internal anywhere here,
but if we use GstValueArray the option strings get serialized nicely
in the debug logs at least.

12 years agotools: gst-inspect: suppress deprecation warnings for G_TYPE_VALUE_ARRAY
Tim-Philipp Müller [Thu, 26 Jan 2012 09:26:48 +0000 (09:26 +0000)]
tools: gst-inspect: suppress deprecation warnings for G_TYPE_VALUE_ARRAY

For now anyway.

12 years agocollectpads2: Unit test is valgrind clean now
Sebastian Dröge [Thu, 26 Jan 2012 10:42:29 +0000 (11:42 +0100)]
collectpads2: Unit test is valgrind clean now

12 years agocollectpads2: Fix unit test to actually work again
Sebastian Dröge [Thu, 26 Jan 2012 10:40:53 +0000 (11:40 +0100)]
collectpads2: Fix unit test to actually work again

12 years agocollectpads2: Port collectpads unit test to collectpads2
Sebastian Dröge [Thu, 26 Jan 2012 10:38:29 +0000 (11:38 +0100)]
collectpads2: Port collectpads unit test to collectpads2

Currently fails but really shouldn't.

12 years agopad: add probe id to the info
Wim Taymans [Thu, 26 Jan 2012 10:01:21 +0000 (11:01 +0100)]
pad: add probe id to the info

12 years agocollectpads: Remove old collectpads
Sebastian Dröge [Thu, 26 Jan 2012 09:48:56 +0000 (10:48 +0100)]
collectpads: Remove old collectpads

Still have to rename collectpads2 to collectpads before the 1.0 release.

12 years agocollectpads2: Don't forward CAPS event automatically
Sebastian Dröge [Thu, 26 Jan 2012 09:30:25 +0000 (10:30 +0100)]
collectpads2: Don't forward CAPS event automatically

12 years agocollectpads2: Fix handling of the event function and document it
Sebastian Dröge [Wed, 25 Jan 2012 17:49:15 +0000 (18:49 +0100)]
collectpads2: Fix handling of the event function and document it

The event function is supposed to forward/drop the event in any case
now and takes ownership of the event.

12 years agogst_pad_template_new() now returns a floating reference
Jason DeRose [Wed, 25 Jan 2012 17:36:42 +0000 (18:36 +0100)]
gst_pad_template_new() now returns a floating reference

12 years agogst_pipeline_new now returns a floating reference.
Peteris Krisjanis [Wed, 25 Jan 2012 17:41:03 +0000 (19:41 +0200)]
gst_pipeline_new now returns a floating reference.

12 years agogst: gst_parse_bin_from_description returns a new reference
Peteris Krisjanis [Wed, 25 Jan 2012 15:27:40 +0000 (17:27 +0200)]
gst: gst_parse_bin_from_description returns a new reference

12 years agoquery: use GArray for internal arrays instead of the now-deprecated GValueArray
Tim-Philipp Müller [Wed, 25 Jan 2012 15:14:17 +0000 (15:14 +0000)]
query: use GArray for internal arrays instead of the now-deprecated GValueArray

12 years agogst: Changed introspection transfer flag to (transfer floating)
Peteris Krisjanis [Wed, 25 Jan 2012 14:01:02 +0000 (16:01 +0200)]
gst: Changed introspection transfer flag to (transfer floating)

for gst_pad_new, gst_ghost_pad_new and gst_bin_new constuctors. Fixes
segfaults due of transfer full and floating ref problem.

12 years agoAutomatic update of common submodule
Thomas Vander Stichele [Wed, 25 Jan 2012 12:46:13 +0000 (13:46 +0100)]
Automatic update of common submodule

From c463bc0 to 7fda524

12 years agomemory: add flags to the mapinfo
Wim Taymans [Tue, 24 Jan 2012 13:37:25 +0000 (14:37 +0100)]
memory: add flags to the mapinfo

12 years agomemory: make guint8 * for easy usage
Wim Taymans [Fri, 20 Jan 2012 15:10:26 +0000 (16:10 +0100)]
memory: make guint8 * for easy usage

12 years agomemory: add method to create mapped memory
Wim Taymans [Fri, 20 Jan 2012 13:56:49 +0000 (14:56 +0100)]
memory: add method to create mapped memory

Add a method to create a GstMemory with the desired mapping. Makes a copy of the
memory if it is currently in use.

12 years agoAdd new GstMapInfo
Wim Taymans [Fri, 20 Jan 2012 13:23:57 +0000 (14:23 +0100)]
Add new GstMapInfo

Use a structure to hold info about the mapping. The application then keeps track
of this state and we can use it to unmap the memory again later.

12 years agocontrolbindings: name is not a const
Edward Hervey [Wed, 25 Jan 2012 10:49:50 +0000 (11:49 +0100)]
controlbindings: name is not a const

It gets modified during the life of the object. Fixes build.

12 years agoMerge branch 'master' into 0.11
Sebastian Dröge [Wed, 25 Jan 2012 10:43:13 +0000 (11:43 +0100)]
Merge branch 'master' into 0.11

12 years agoAutomatic update of common submodule
Sebastian Dröge [Wed, 25 Jan 2012 10:37:40 +0000 (11:37 +0100)]
Automatic update of common submodule

From 2a59016 to c463bc0

12 years agocontroller: cleanup the control-binding construction
Stefan Sauer [Tue, 24 Jan 2012 20:53:14 +0000 (21:53 +0100)]
controller: cleanup the control-binding construction

This is now bindings firendly as _new is just a classic c convenience and all
the work is done in a constructor. As a side effect _new never fails.
Fix the tests.