Commit graph

84 commits

Author SHA1 Message Date
Wim Taymans ea012d3dd7 pad: GST_FLOW_UNEXPECTED -> GST_FLOW_EOS 2011-10-10 11:33:51 +02:00
Wim Taymans 61143b7840 docs: update porting doc 2011-08-15 12:18:59 +02:00
Sebastian Dröge e9202c22f0 porting-to-0.11: Add section about GstIterator 2011-08-03 11:04:12 +02:00
Tim-Philipp Müller ef8ca3549e gst: fix awkward dest_format inout parameter in query utility functions
The idea was originally that if one passed &dest_fmt with
dest_fmt=GST_FORMAT_DEFAULT, then the code answering the query
could change dest_fmt to the actual default format used. However,
in more than half a decade of GStreamer 0.10 no piece of code in
GStreamer has ever used that feature, nor are there that many
users of this API that actually check whether the format returned
is the original format passed before using the values returned.
Also, it's just annoying-to-use API in its own right.

For all these reasons, make it so that the destination format is
passed directly and can't be changed by the element queried.
2011-07-28 11:23:15 +01:00
Wim Taymans e672a372d6 talk about the basetransform sink_event vmethod 2011-07-24 09:05:22 +02:00
Tim-Philipp Müller 3dbcb73b11 Remove GstImplementsInterface
It was a bit too clever, and didn't really work as an API,
confusing people to no end. Better implement specific methods
whether an interface is usable/available/ready on the interface
itself, or even add GError arguments, rather than try to have
per-instance interfaces.
2011-06-26 22:59:26 +01:00
Tim-Philipp Müller 4b920eb5d2 docs: update for API changes
Also remove GST_PAD_CHECKGETRANGEFUNC macro
2011-06-05 18:57:56 +01:00
Wim Taymans f06acc7bf7 docs: update porting doc 2011-06-03 11:15:30 +02:00
Sebastian Dröge 7295f3e2f6 basetransform: Pass the complete caps to transform_caps
Instead of passing it structure by structure. This allows
better optimized transform_caps functions and allows better
transformation decisions.

See bug #619844.
2011-05-27 11:37:24 +02:00
Sebastian Dröge 5f406248eb element: Consider GstPadTemplate as immutable
Don't copy the templates when creating subclasses but only increase
their refcount.
2011-05-17 13:13:51 +02:00
Sebastian Dröge be00534878 padtemplate: Create pad templates with floating refs
And take ownership of the floating ref in gst_element_add_pad_template()
2011-05-17 13:13:51 +02:00
Sebastian Dröge dd89e924db padtemplate: Improve reference handling of the template's caps
gst_pad_template_new() does not take ownership of the caps anymore.
2011-05-17 13:13:51 +02:00
Sebastian Dröge b5bc5b459a pad: Let template related functions return new references
gst_pad_template_get_caps(), gst_pad_get_pad_template_caps()
and gst_pad_get_pad_template() return a new reference of the
caps or template now and the return value needs to be
unreffed after usage.
2011-05-17 12:00:18 +02:00
Sebastian Dröge bdf9022861 base: Improve negotiation with new getcaps() filter 2011-05-16 15:33:10 +02:00
Sebastian Dröge 3fa1594aaf gst: Add a filter caps parameter to all get_caps() functions
This is used to pass the possible caps and preferences to
the pad and to allow better negotiation decisions.
2011-05-16 15:33:10 +02:00
Wim Taymans b905c4d215 porting: update porting doc 2011-05-10 16:46:15 +02:00
Wim Taymans fbf306449e porting: update porting doc 2011-05-10 16:23:08 +02:00
Wim Taymans ac1e42402a porting: update porting doc 2011-05-06 12:23:01 +02:00
Wim Taymans 9c48af743c docs: improve porting doc 2011-05-03 16:12:01 +02:00
Wim Taymans 6388666174 porting: update porting document 2011-05-03 16:12:01 +02:00
Philippe Normand 4e36f93924 core: store presets, registry and plugins in XDG directories.
Presets and plugins moved to $XDG_DATA_HOME/gstreamer-0.11/
root directory. Registry moved to $XDG_CACHE_HOME/gstreamer-0.11/.

Fixes bug #518597.
2011-05-03 09:43:22 +02:00
Sebastian Dröge 0f3f816f3f utils: Remove GST_BOILERPLATE and friends 2011-04-19 11:45:32 +02:00
Sebastian Dröge 7c8617ea82 bin: Enable DURATION query caching
Elements must now post a DURATION message on the bus if they
change the duration in PAUSED or PLAYING.
2011-04-18 10:36:41 +02:00
Sebastian Dröge aad57970de element: Inherit element metadata and pad templates from parent classes
This allows to add pad templates and set metadata in class_init instead of
base_init. base_init is a concept that is not supported by almost all
languages and copying the templates/metadata for subclasses is the more
intuitive way of doing things.

Subclasses can override pad templates of parent classes by adding a new
template with the same now.

Also gst_element_class_add_pad_template() now takes ownership of the
pad template, which was assumed by all code before anyway.

Fixes bug #491501.
2011-04-16 15:59:35 +02:00
Wim Taymans f6a5b168b2 docs: update porting guide with bufferlist changes 2011-04-01 10:46:06 +02:00
Wim Taymans 34da2a68f9 docs: update porting doc 2011-03-31 10:33:49 +02:00
Wim Taymans 3169e8414b docs: update porting guide 2011-02-23 15:43:49 +01:00
Wim Taymans 2e8d1620ef docs: update porting guide 2011-02-23 12:54:21 +01:00
Wim Taymans a5ab300978 porting: update porting document 2010-12-07 18:32:34 +01:00
Wim Taymans 43470edb2d porting: update porting doc 2010-12-07 18:12:53 +01:00
Wim Taymans 99efec3636 object: Removed deprecated fields and methods
Make GstObject extend from GInitiallyUnowned, remove the FLOATING flag and use
GObject methods for managing the floating ref.
Remove class lock, it was a workaround for a glib < 2.8 bug.
Remove the parent-set and parent-unset signals, attempt to implement with notify
but disabled because deadlocks in deep-notify.
2010-12-07 11:58:34 +01:00
Wim Taymans ab99dec18a porting: mention removal of protocol property 2010-12-06 20:03:46 +01:00
Wim Taymans ab2c5a489c docs: update porting doc 2010-12-06 19:24:30 +01:00
Wim Taymans b38d4ed6dd porting: Add porting doc 2010-12-06 13:51:50 +01:00