Sebastian Dröge [Thu, 8 Sep 2011 12:39:30 +0000 (14:39 +0200)]
Revert "Revert "basetransform: Use check for subsets and not non-empty intersection to check if caps are compatible""
This reverts commit
0bc6d49c950210bf422615fb8dc98c5adcd5e456.
Conflicts:
libs/gst/base/gstbasetransform.c
Sebastian Dröge [Thu, 8 Sep 2011 12:31:52 +0000 (14:31 +0200)]
Revert "Revert "pad: Check for subsets, not non-empty intersections to check if caps are compatible""
This reverts commit
2bfada5581e35a2d37188f48a2c7442644f10bb3.
Conflicts:
gst/gstpad.c
For 0.11 we want to enforce that only subsets of the pad
caps are allowed. This breaks backward compatibility for
some elements, which is why we only print a warning in
0.10.
Sebastian Dröge [Thu, 8 Sep 2011 12:30:07 +0000 (14:30 +0200)]
Merge branch 'master' into 0.11
Conflicts:
gst/gstpad.c
Sebastian Dröge [Thu, 8 Sep 2011 12:29:00 +0000 (14:29 +0200)]
Revert "pad: Use gst_pad_accept_caps() instead of manually checking when configuring a sinkpad"
This reverts commit
d3cad28da936b037d877dc70c02286b81b680284.
It causes performance problems because acceptcaps() propagates downstream.
Sebastian Dröge [Thu, 8 Sep 2011 12:23:50 +0000 (14:23 +0200)]
Merge branch 'master' into 0.11
Conflicts:
docs/design/draft-buffer2.txt
docs/design/part-TODO.txt
docs/design/part-block.txt
docs/design/part-bufferlist.txt
docs/design/part-caps.txt
docs/design/part-element-transform.txt
docs/design/part-events.txt
docs/design/part-negotiation.txt
gst/gstcaps.c
gst/gstevent.h
gst/gstghostpad.c
gst/gstinterface.c
gst/gstpad.c
gst/gstpad.h
gst/gstutils.c
libs/gst/base/gstbasesink.c
libs/gst/base/gstbasesrc.c
libs/gst/base/gstbasetransform.c
libs/gst/base/gsttypefindhelper.c
plugins/elements/gstcapsfilter.c
plugins/elements/gsttee.c
tests/check/generic/sinks.c
tools/gst-launch.1.in
Sebastian Dröge [Thu, 8 Sep 2011 11:41:19 +0000 (13:41 +0200)]
pad: Use gst_pad_accept_caps() instead of manually checking when configuring a sinkpad
Sebastian Dröge [Thu, 8 Sep 2011 11:40:06 +0000 (13:40 +0200)]
pad: Print a g_warning() if pad accept caps that are not a subset of its caps
In 0.11 only subsets are supported again as documented instead of also
allowing non-empty intersections.
Sebastian Dröge [Thu, 8 Sep 2011 11:26:24 +0000 (13:26 +0200)]
Revert "basetransform: Use check for subsets and not non-empty intersection to check if caps are compatible"
This reverts commit
5e5cc5e89e7e2858a6352fa4c81a374f6e5a6297.
See bug #658541.
Sebastian Dröge [Thu, 8 Sep 2011 11:26:01 +0000 (13:26 +0200)]
Revert "pad: Check for subsets, not non-empty intersections to check if caps are compatible"
This reverts commit
0c5d50207326d74a4805bcd898bfac887540f12b.
See bug #658541.
Piotr Fusik [Wed, 7 Sep 2011 11:14:38 +0000 (13:14 +0200)]
docs, gst: typo fixes
https://bugzilla.gnome.org/show_bug.cgi?id=658449
Tim-Philipp Müller [Wed, 7 Sep 2011 14:07:20 +0000 (15:07 +0100)]
docs: fix make distcheck
No point removin those empty override files from git, they'll
just be re-created later, so let's tell gtk-doc about them, so
it can clean them up properly.
Sebastian Dröge [Wed, 7 Sep 2011 14:02:31 +0000 (16:02 +0200)]
basetransform: If there's no peer we still have to transform ANY caps in getcaps()
Otherwise elements like capsfilter will return ANY caps if no
peer is present instead of the filter caps. The transform_caps()
vfunc could do transformations to the template caps that do not
result in the unmodified template caps.
Stefan Sauer [Wed, 7 Sep 2011 12:05:03 +0000 (14:05 +0200)]
docs: cleanup makefiles
Remove commented out parts that we don't need. Remove "the wingo addition" - no
so useful after all. Narrow down file-globs for plugin docs.
Stefan Sauer [Wed, 7 Sep 2011 11:50:08 +0000 (13:50 +0200)]
docs: escape % in docblob
Stas Sergeev [Fri, 2 Sep 2011 15:46:06 +0000 (19:46 +0400)]
ghostpad: Use gst_pad_set_caps() instead of manually changing caps
gst_pad_set_caps() does essentially the same but additionally calls
the pad's setcaps function.
Fixes bug #658076.
Stefan Sauer [Tue, 6 Sep 2011 19:24:10 +0000 (21:24 +0200)]
Automatic update of common submodule
From
a39eb83 to
11f0cd5
Stefan Sauer [Tue, 6 Sep 2011 13:39:52 +0000 (15:39 +0200)]
Automatic update of common submodule
From
605cd9a to
a39eb83
Sebastian Dröge [Tue, 6 Sep 2011 10:17:05 +0000 (12:17 +0200)]
basetransform: Use check for subsets and not non-empty intersection to check if caps are compatible
Sebastian Dröge [Tue, 6 Sep 2011 10:19:58 +0000 (12:19 +0200)]
pad: Check for subsets, not non-empty intersections to check if caps are compatible
Pads should only accept caps that are a subset of the pad caps, e.g.
they should accept only caps that have a non-empty intersection and
at least all fields of the pad caps.
Without this a pad that wants for example
"video/x-h264,stream-format=byte-stream"
will be happy to accept
"video/x-h264".
Wim Taymans [Mon, 29 Aug 2011 15:06:18 +0000 (17:06 +0200)]
miniobject: change to GST_DEFINE_MINI_OBJECT_TYPE
Append _TYPE to the macro for consistency with other similar macros.
Wim Taymans [Mon, 29 Aug 2011 13:34:30 +0000 (15:34 +0200)]
init: add _get_type() functions
Remove gst_mini_object_register() and add a GST_DEFINE_MINI_OBJECT macro to
define a _get_type() function for the boxed miniobject.
Remove a bunch of custom _get_type() functions and replace them with the
miniobject macro.
Rename some _init method to _priv_*_initialize() like the rest of them.
Inspired by patch from Johan Dahlin and see bug #657603
Wim Taymans [Mon, 29 Aug 2011 11:27:26 +0000 (13:27 +0200)]
gst: add some _priv prefixes to private methods
Wim Taymans [Mon, 29 Aug 2011 10:38:54 +0000 (12:38 +0200)]
mini-object: use ref/unref directly in boxed copy/free
GLib will not call our copy/free with a NULL object
Wim Taymans [Fri, 26 Aug 2011 12:37:54 +0000 (14:37 +0200)]
Merge branch 'master' into 0.11
Conflicts:
gst/gstmessage.c
gst/gstquery.c
gst/gstregistrychunks.c
gst/gstsegment.c
libs/gst/base/gstbasetransform.c
libs/gst/base/gstbasetransform.h
libs/gst/base/gsttypefindhelper.c
plugins/elements/gsttypefindelement.c
Wim Taymans [Fri, 26 Aug 2011 12:18:33 +0000 (14:18 +0200)]
base: rename allocation vmethods
Name the allocation vmethod on srcpad decide_allocation because source pads will
have to decide what allocation parameters will be used.
Name the allocation vmethod on sinkpads propose_allocation because they will
need to configure the allocation query with a proposed values for upstream.
Wim Taymans [Fri, 26 Aug 2011 12:17:23 +0000 (14:17 +0200)]
buffer: improve flags
Rename DROP to DECODE_ONLY.
Add DROPPABLE flag to mark buffers that can be dropped to save bandwidth without
destroying the stream.
Josep Torra [Fri, 26 Aug 2011 12:09:47 +0000 (14:09 +0200)]
docs: add since 0.10.36 on the new _NONE enum values
Josep Torra [Thu, 25 Aug 2011 22:13:16 +0000 (00:13 +0200)]
stepping: use the proper argument order
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Thu, 25 Aug 2011 22:06:12 +0000 (00:06 +0200)]
fileindex: explicitly cast to the enum types
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Thu, 25 Aug 2011 22:00:25 +0000 (00:00 +0200)]
typefinder: use GST_TYPE_FIND_NONE instead of 0
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Thu, 25 Aug 2011 21:53:58 +0000 (23:53 +0200)]
lfocontrolsource: explicitly cast to the enum type
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Thu, 25 Aug 2011 21:49:38 +0000 (23:49 +0200)]
typefind: add GST_TYPE_FIND_NONE and use it
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Thu, 25 Aug 2011 21:26:08 +0000 (23:26 +0200)]
baseparse: use the enum values for 0 and don't abuse on gboolean coincidence
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Thu, 25 Aug 2011 21:06:56 +0000 (23:06 +0200)]
baseparse: put the arguments of g_return_val_if_fail in the proper order
Josep Torra [Thu, 25 Aug 2011 20:48:54 +0000 (22:48 +0200)]
parse: use GST_PARSE_FLAG_NONE instead of 0
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Thu, 25 Aug 2011 20:42:08 +0000 (22:42 +0200)]
value: explicitly cast to the enum type
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Thu, 25 Aug 2011 20:29:45 +0000 (22:29 +0200)]
utils: minor changes related to enum types
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Thu, 25 Aug 2011 20:05:26 +0000 (22:05 +0200)]
trace: add GST_ALLOC_TRACE_NONE for consistency and use it
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Thu, 25 Aug 2011 19:52:05 +0000 (21:52 +0200)]
task: explicitly cast to the enum type
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Thu, 25 Aug 2011 19:49:29 +0000 (21:49 +0200)]
tagsetter: use GST_TAG_MERGE_UNDEFINED instead of FALSE
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Thu, 25 Aug 2011 19:30:57 +0000 (21:30 +0200)]
segment: use GST_SEEK_FLAG_NONE instead of 0
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Thu, 25 Aug 2011 19:25:46 +0000 (21:25 +0200)]
registrychunks: explicitly cast to the enum types
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Thu, 25 Aug 2011 19:18:15 +0000 (21:18 +0200)]
query: minor changes related to enum types
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Thu, 25 Aug 2011 19:03:53 +0000 (21:03 +0200)]
padtemplate: explicitly cast to the enum types
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Tue, 16 Aug 2011 21:00:47 +0000 (23:00 +0200)]
pad: explicitly cast to the enum type
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Tue, 16 Aug 2011 20:51:29 +0000 (22:51 +0200)]
message: explicitly cast to the right enum types
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Tue, 16 Aug 2011 20:41:32 +0000 (22:41 +0200)]
info: explicitly cast to the enum type
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Tue, 16 Aug 2011 20:37:08 +0000 (22:37 +0200)]
index: explicitly cast to the enum type
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Josep Torra [Tue, 16 Aug 2011 20:29:59 +0000 (22:29 +0200)]
format: use GST_FORMAT_UNDEFINED and few casts to GstFormat
Fixes warning #188: enumerated type mixed with another type reported by ICC.
Sjoerd Simons [Fri, 26 Aug 2011 12:02:34 +0000 (13:02 +0100)]
basetransform: Fix bodged previous commit
Sjoerd Simons [Fri, 26 Aug 2011 11:37:43 +0000 (12:37 +0100)]
basetransform: Use GstPadDirection in the query vfunc
Wim suggested that using GstPadDirection instead of a GstPad in the
arguments to the new query vfunc would be more consistent with the other
functions.
Wim Taymans [Fri, 26 Aug 2011 11:40:44 +0000 (13:40 +0200)]
buffer: rename _CLIP to _DROP flag
We can also use a flag to indicate that a frame should be decoded but not
displayed regardless of the the segment boundaries so we use the more generic
_DROP.
Wim Taymans [Fri, 26 Aug 2011 10:28:28 +0000 (12:28 +0200)]
basetransform: remove some unused variables
Wim Taymans [Fri, 26 Aug 2011 09:44:12 +0000 (11:44 +0200)]
basetransform: add vmethod to configure upstream bufferpool
Add a vmethod that can be implemented to influence the bufferpool that upstream
elements will use.
Wim Taymans [Fri, 26 Aug 2011 09:24:42 +0000 (11:24 +0200)]
basetransform: use pad direction like other vmethods
Wim Taymans [Fri, 26 Aug 2011 09:09:07 +0000 (11:09 +0200)]
Merge branch 'master' into 0.11
Conflicts:
libs/gst/base/gstbasetransform.c
libs/gst/base/gstbasetransform.h
Wim Taymans [Fri, 26 Aug 2011 08:57:37 +0000 (10:57 +0200)]
uri: some doc fixes
Sjoerd Simons [Thu, 25 Aug 2011 10:02:16 +0000 (11:02 +0100)]
BaseTransform: Add a query vfunc
Sjoerd Simons [Wed, 20 Jul 2011 12:05:27 +0000 (14:05 +0200)]
capsfilter: don't assume _get_caps still has to be
_set_caps only gets called when the buffer is actually pushed, so there
is a reasonably big window between when the initial caps are retrieved
and when the caps are set on our src pad. So we can't assume the not
having negotiated caps on our src pad means _get_caps still has to be
called.
Instead simply always suggest the new caps on buffer_alloc.
Wim Taymans [Thu, 25 Aug 2011 16:04:28 +0000 (18:04 +0200)]
buffer: add clip flag
Wim Taymans [Thu, 25 Aug 2011 14:21:18 +0000 (16:21 +0200)]
buffer: rework flags a little
Reorder buffer flags and add some new ones.
Remove the media specific flags, we can now easily do this with the FLAG_LAST
flag because we don't extend from GstBuffer anymore.
Wim Taymans [Thu, 25 Aug 2011 14:20:21 +0000 (16:20 +0200)]
buffer: always copy all buffer flags when asked
Don't try to be smart and copy only a subset of buffer flag
Wim Taymans [Thu, 25 Aug 2011 14:19:52 +0000 (16:19 +0200)]
update defs
Wim Taymans [Thu, 25 Aug 2011 12:09:37 +0000 (14:09 +0200)]
buffer: pluralize the buffer flags
Wim Taymans [Thu, 25 Aug 2011 10:38:58 +0000 (12:38 +0200)]
basesink: remove preroll-queue-len property
Remove the preroll-queue-len property and move its variables to a private
section so that we can remove them later.
Wim Taymans [Wed, 24 Aug 2011 08:43:09 +0000 (10:43 +0200)]
Merge branch 'master' into 0.11
Conflicts:
gst/gstobject.c
Mark Nauwelaerts [Tue, 23 Aug 2011 16:19:53 +0000 (18:19 +0200)]
basesink: ensure start_time reset upon flush
Stefan Kost [Tue, 23 Aug 2011 09:55:17 +0000 (11:55 +0200)]
gstobject: also remove the cast as this is causing the trouble
Stefan Kost [Tue, 23 Aug 2011 09:41:02 +0000 (11:41 +0200)]
gstobject: use the atomic macros to deal with the glib change in the impl.
Wim Taymans [Mon, 22 Aug 2011 10:49:04 +0000 (12:49 +0200)]
object: make _replace like the miniobject version
Wim Taymans [Mon, 22 Aug 2011 10:33:35 +0000 (12:33 +0200)]
Merge branch 'master' into 0.11
Conflicts:
gst/gstbuffer.h
gst/gstcaps.c
gst/gstcaps.h
gst/gstevent.c
Wim Taymans [Mon, 22 Aug 2011 10:19:19 +0000 (12:19 +0200)]
value: remove our FOURCC GType
Remove our custom fourcc GValue.
David Schleef [Sun, 21 Aug 2011 21:07:08 +0000 (14:07 -0700)]
object: make gst_object_replace() atomic
Stefan Kost [Sat, 20 Aug 2011 12:07:55 +0000 (14:07 +0200)]
docs: more clarification for element docs
Don't suggest deprecated method in the desction docs and try to be more helpful
in other places by suggesting related functions.
Stefan Kost [Sat, 20 Aug 2011 07:56:01 +0000 (09:56 +0200)]
docs: small clarification in the gst_element_get_request_pad docs
Make it more obvious that one should pass the template name.
Tim-Philipp Müller [Thu, 18 Aug 2011 19:46:01 +0000 (20:46 +0100)]
baseparse: don't use == in debug string
It messes up GST_DEBUG=*:5 make foo/bar.valgrind, because
our Makefile looks for '==' as marker of valgrind output.
Tim-Philipp Müller [Thu, 18 Aug 2011 19:44:01 +0000 (20:44 +0100)]
baseparse: fix crash on seek from streaming thread on newsegment event
Event if it's not allowed, we can easily prevent it, so let's do
that.
https://bugzilla.gnome.org/show_bug.cgi?id=656771
Wim Taymans [Wed, 17 Aug 2011 15:56:40 +0000 (17:56 +0200)]
structure: add method to fixate one field
Wim Taymans [Wed, 17 Aug 2011 15:16:21 +0000 (17:16 +0200)]
basesrc: add default fixate function
Add a default fixate function which does gst_caps_fixate() because
gst_pad_fixate() does not do that anymore.
Wim Taymans [Wed, 17 Aug 2011 07:25:04 +0000 (09:25 +0200)]
docs: improve some docs
Wim Taymans [Tue, 16 Aug 2011 16:29:29 +0000 (18:29 +0200)]
buffer: return processed number of bytes
Make _fill, _extract and _memset return the actual number of bytes that were
handled in case the buffer size is less than the specified size.
Tim-Philipp Müller [Tue, 16 Aug 2011 16:19:29 +0000 (17:19 +0100)]
docs: fix typo in element factory documentation
Wim Taymans [Tue, 16 Aug 2011 15:32:20 +0000 (17:32 +0200)]
buffer: rename PREROLL -> LIVE flag
Rename the GST_BUFFER_FLAG_PREROLL to GST_BUFFER_FLAG_LIVE and give the new flag
a meaning. The old PREROLL flag never had a clear meaning.
Tim-Philipp Müller [Mon, 15 Aug 2011 20:05:34 +0000 (21:05 +0100)]
caps: fix compiler warning reported by ICC
The MAX macro expands to code that checks if an unsigned integer is < 0.
Fixes warning #186: pointless comparison of unsigned integer reported by ICC.
https://bugzilla.gnome.org/show_bug.cgi?id=656265
Josep Torra [Wed, 10 Aug 2011 09:39:23 +0000 (11:39 +0200)]
buffer: explicitly cast to the enum type
Fixes warning #188: enumerated type mixed with another type reported by ICC.
https://bugzilla.gnome.org/show_bug.cgi?id=656265
Josep Torra [Wed, 10 Aug 2011 09:07:49 +0000 (11:07 +0200)]
gststate: explicitly cast to the enum type
Fixes warning #188: enumerated type mixed with another type reported by ICC.
https://bugzilla.gnome.org/show_bug.cgi?id=656265
Josep Torra [Tue, 9 Aug 2011 21:42:26 +0000 (23:42 +0200)]
event: explicitly cast to the right enum types
Fixes warning #188: enumerated type mixed with another type reported by ICC.
https://bugzilla.gnome.org/show_bug.cgi?id=656265
Josep Torra [Tue, 9 Aug 2011 21:33:43 +0000 (23:33 +0200)]
gsterror: explicitly cast to the right GstGError code enum types
Fixes warning #188: enumerated type mixed with another type reported by ICC.
https://bugzilla.gnome.org/show_bug.cgi?id=656265
Josep Torra [Tue, 9 Aug 2011 21:26:13 +0000 (23:26 +0200)]
debugutils: use GST_STATE_VOID_PENDING for GstState instead of 0
Fixes a warning reported by ICC.
https://bugzilla.gnome.org/show_bug.cgi?id=656265
Josep Torra [Tue, 9 Aug 2011 20:48:53 +0000 (22:48 +0200)]
caps: define GST_CAPS_FLAGS_NONE for consistency with other enumerations
Use them to fix warnings when building with ICC.
API: GST_CAPS_FLAGS_NONE
https://bugzilla.gnome.org/show_bug.cgi?id=656265
Josep Torra [Tue, 9 Aug 2011 20:29:44 +0000 (22:29 +0200)]
gst: use GstDebugLevel enum type to fix a warning building with ICC
https://bugzilla.gnome.org/show_bug.cgi?id=656265
Wim Taymans [Mon, 15 Aug 2011 14:45:33 +0000 (16:45 +0200)]
pad: make fixate caps behave like other functions
Install a default fixate caps function on pads like all the other pad functions.
Wim Taymans [Mon, 15 Aug 2011 14:45:05 +0000 (16:45 +0200)]
defs: update for new symbols
Wim Taymans [Mon, 15 Aug 2011 12:43:14 +0000 (14:43 +0200)]
Merge branch 'master' into 0.11
Wim Taymans [Mon, 15 Aug 2011 12:40:38 +0000 (14:40 +0200)]
caps: add fixate function
Add a fixate function and use it in gstpad.c
Wim Taymans [Mon, 15 Aug 2011 12:32:17 +0000 (14:32 +0200)]
structure: add function to fixate
Add a function to fixate a structure and use it for the default fixate function
in gstpad.c.
Guillaume Desmottes [Mon, 15 Aug 2011 11:17:44 +0000 (13:17 +0200)]
gst-uninstalled: add Farsight and Nice support
https://bugzilla.gnome.org/show_bug.cgi?id=656557
Wim Taymans [Mon, 15 Aug 2011 12:17:39 +0000 (14:17 +0200)]
pad: fix default acceptcaps
Make the acceptcaps function behave like all the other functions with a default
implementation. Don't try to chain up to the default implementation when it was
set to NULL explicitly but return FALSE instead.
Fix some docs
Wim Taymans [Mon, 15 Aug 2011 11:24:11 +0000 (13:24 +0200)]
pad: fix some macros
Remove a rather usless macro to check if a pad mode is active and
add GST_PAD_IS_ACTIVE().
Wim Taymans [Mon, 15 Aug 2011 10:18:59 +0000 (12:18 +0200)]
docs: update porting doc