Commit graph

14563 commits

Author SHA1 Message Date
Tim-Philipp Müller
6fee4c44e1 buffer: allow calling _fill() with a NULL data pointer if size is 0 bytes 2013-05-18 11:01:27 +01:00
Tim-Philipp Müller
158bc017ca typefind: fix caps leak when used in connection with uridecodebin and playbin
Don't leak forced sink caps.
2013-05-04 11:25:01 +01:00
Sebastian Dröge
0a1f57538c Release 1.0.7 2013-04-26 12:11:02 +02:00
Sebastian Dröge
653fe3d6cf inputselector: Try to not push read-only buffers
We should only increase the refcount before pushing if we're
really going to use the buffer afterwards.
2013-04-26 08:19:33 +02:00
Thibault Saunier
b133903093 controller: Fix element-type annotations 2013-04-26 08:19:32 +02:00
Sebastian Dröge
26add2d13c gst: Add better support for static plugins
API: GST_PLUGIN_STATIC_DECLARE()
API: GST_PLUGIN_STATIC_REGISTER()

Based on a patch by Håvard Graff <havard.graff@tandberg.com>.

This now allows GST_PLUGIN_DEFINE() to create a static plugin if
GST_PLUGIN_BUILD_STATIC is defined. The resulting plugin can be
statically linked or dynamically linked during compilation but
can't be dynamically loaded during runtime.

Also adds GST_PLUGIN_STATIC_DECLARE() and GST_PLUGIN_STATIC_REGISTER(),
which allows to register a static linked plugin easily.
It is still required to manually register every single statically linked
plugin from inside the application as this can't be automated in a portable
way.

A new configure parameter --enable-static-plugins was added that allows
to build all plugins we build here as static plugins.

Fixes bug #667305.
2013-04-15 16:09:39 +02:00
Sebastian Dröge
c4ce6a4ffa caps: Add unit test for GST_CAPS_{ANY,NONE} and GST_STATIC_CAPS_{ANY,NONE}
https://bugzilla.gnome.org/show_bug.cgi?id=696435
2013-04-15 08:20:40 +02:00
Sebastian Dröge
c942fb3848 caps: Fix gst_static_caps_get(GST_STATIC_CAPS_NONE)
https://bugzilla.gnome.org/show_bug.cgi?id=696435
2013-04-15 08:20:04 +02:00
Nicolas Dufresne
9ce8e5b7ff basesrc: Don't send error if negotiate fails because we are flushing
Negotiation may be aborted by a flush from another thread that need to
stop the task (i.e. seek). Check that case and silently pause the task.

https://bugzilla.gnome.org/show_bug.cgi?id=696357
2013-04-15 08:19:55 +02:00
Wim Taymans
7452a47c71 taglist: avoid triggering an assertion
When deserialization of the structure fails, return a NULL taglist instead of
asserting.
2013-04-13 12:08:55 +01:00
Tim-Philipp Müller
f9a10c4dca gst-inspect: only add a '*' for non-'gpointer' pointers
Spotted by Jose Antonio Santos Cadena.

https://bugzilla.gnome.org/show_bug.cgi?id=697791
2013-04-13 12:08:18 +01:00
Jose Antonio Santos Cadenas
52a5bd9b4b gst-inspect: add pointer mark to signal and action return types that are pointers
When the return type of a signal or action is a pointer, it
should have an asterisk to mark it as such.

https://bugzilla.gnome.org/show_bug.cgi?id=697791
2013-04-13 12:08:12 +01:00
Tim-Philipp Müller
5ef30a7019 netclientclock: bind socket before querying local address
Fails on windows otherwise.

https://bugzilla.gnome.org/show_bug.cgi?id=697608
2013-04-13 12:07:37 +01:00
Wim Taymans
e9d7f8cb37 bufferpool: fix docs 2013-04-04 16:40:22 +02:00
Nicolas Dufresne
c697912fcb segment: Fix seeking when position is slightly outside the segment
Very often, when the end of a segment is detected by demuxer, the position
is slightly outside the segment boundaries. Currently, if that is the case
the base will be set to NONE instead of normal accumulation. This would
break non-flushing seeks in oggdemux and most likely other demuxers.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=696899
2013-04-04 10:12:37 +02:00
Tim-Philipp Müller
a45d8c9d00 Release 1.0.6 2013-03-22 12:33:48 +00:00
Tim-Philipp Müller
74c3fa2347 po: update for new translatable string 2013-03-22 09:53:58 +00:00
Tim-Philipp Müller
9f3d06c4d4 basetransform: don't pass NULL outcaps to transform_size on shutdown
gst_pad_get_current_caps() on the source pad might yield NULL caps
if we're being shut down and the source pad has already been
deactivated by the other thread that's changing state. Just bail
out in that case, instead of passing NULL caps to the transform_size
function, which it might not expect.

Fixes spurious warnings in audioresample shutdown unit test.

https://bugzilla.gnome.org/show_bug.cgi?id=693996
2013-02-21 11:36:55 +00:00
Tim-Philipp Müller
f3293d37ce message: accept NULL error argument in gst_message_parse_{error,warning,info}
And simplify code a bit while at it.

https://bugzilla.gnome.org/show_bug.cgi?id=693704
2013-02-13 16:56:12 +00:00
Tim 'mithro' Ansell
926719a0bc gstvalue: Adding offset to GstSegment serialize/deserialize.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=693587
2013-02-11 14:21:49 +01:00
Wim Taymans
d5f6642cd7 bin: remove old comment
The iterators now return a GValue and not the object directly anymore.
2013-02-07 12:55:21 +01:00
Wim Taymans
40e150ba8d bin: reset GValue from iterator after usage 2013-02-07 12:55:14 +01:00
Stefan Sauer
030103596e debugutils: fix order of caps on an unnegotiated link
headlabel is the sink_pad (where the link points to) and not the other way around.
2013-02-05 18:42:43 +00:00
Stefan Sauer
e52bebfa57 docs: update the controller docs
Add the control bindings to the docs. Add a little more detail.
2013-02-05 18:42:43 +00:00
Stefan Sauer
bb6bbd4a0b porting: a few updates for the porting guide 2013-02-05 18:42:43 +00:00
Wim Taymans
2aaacfc66b tests: add basesink test 2013-02-05 17:37:22 +01:00
Wim Taymans
0b72d1af1a basesink: handle sync of EOS after item without duration
After a buffer or GAP without duration, an EOS event should be rendered
immediately instead of waiting for the end of the segment.

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

Conflicts:
	libs/gst/base/gstbasesink.c
2013-02-05 17:37:13 +01:00
Nate Bogdanowicz
25c6490109 gstpipeline: fix failed assertion caused by seeking pipeline with NULL clock
Under certain GST_STATE_CHANGED_PAUSED_TO_PLAYING transitions, a pipeline with
a NULL clock will fail an assertion due to an unchecked call to gst_object_ref().
This is fixed by simply adding a check and only ref-ing if the clock is not NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=693065
2013-02-05 14:28:36 +01:00
Tim-Philipp Müller
5180ff7c54 dataqueue: can't pass a GType through GINT_TO_POINTER
Use GSIZE_TO_POINTER instead. sizeof(GType) may be larger
than sizeof(gulong) and sizeof(int), so the casts may
chop off some bits from the GType value on some architectures.

Conflicts:
	plugins/elements/gstdataqueue.c
2013-01-30 13:19:09 +00:00
Alexander Schrab
fd366ce628 tests: unit test to trigger the queue/flushing race condition bug for allocation queries
https://bugzilla.gnome.org/show_bug.cgi?id=692691
2013-01-30 12:12:58 +00:00
Alexander Schrab
ca5628ad8c queue: remove query from queue if queue is flushing
When querying a queue that is flushing we end up adding
a query to the queuearray without taking a reference to
that query (because the normal functionality is to block
until that query is done and discarded from the queue).
This later causes problem if the query is unreffed outside
of the queue before we discard the queue. There is a check
to avoid unreffing any lingering query-objects, but since
the query has been deleted that check fails.

This commit depends on other fixes done to gst_queue_array_find()
and gst_queue_array_drop_element().

https://bugzilla.gnome.org/show_bug.cgi?id=692691
2013-01-30 12:12:45 +00:00
Tim-Philipp Müller
1b46969f7e queuearray: make _find() find the value if no compare function is provided
Allow NULL as compare function for direct value lookup.

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

Conflicts:
	plugins/elements/gstqueuearray.c
2013-01-30 12:11:33 +00:00
Tim-Philipp Müller
eb37f4e590 tests: one more test for gst_queue_array_drop_element()
https://bugzilla.gnome.org/show_bug.cgi?id=692691
2013-01-30 11:16:40 +00:00
Alexander Schrab
53a7fe04a0 tests: add checks for gst_queue_array_find() and _drop_element()
https://bugzilla.gnome.org/show_bug.cgi?id=692691
2013-01-30 11:11:51 +00:00
Alexander Schrab
0b2ccd5ff1 queuearray: fix gst_queue_array_find()
https://bugzilla.gnome.org/show_bug.cgi?id=692691
2013-01-30 11:11:39 +00:00
Alexander Schrab
a1568a3054 queuearray: fix gst_queue_array_drop_element()
https://bugzilla.gnome.org/show_bug.cgi?id=692691
2013-01-30 11:11:06 +00:00
Wim Taymans
1ee8ec7921 basesrc: handle renegotiation correctly
Don't retry to negotiate when we fail to negotiate but instead produce a
NOT_NEGOTIATED error. We only want to retry negotiation if the result from
gst_pad_push() returned NOT_NEGOTIATED.
2013-01-29 10:08:06 +01:00
Simon Feltman
dc7eca6264 g-i: add built enumtypes headers and sources to gir creation
Add gstenumtypes.h/c for inclusion with g-ir-scanner. This fixes
problems where introspection based bindings think GstState is
typeless due to the GType not being included as an annotation.

https://bugzilla.gnome.org/show_bug.cgi?id=691185
2013-01-27 21:00:25 +00:00
Wim Taymans
74e2a8b139 pwg: rename variable
The filter variable was used twice for different things.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=692432
2013-01-24 15:52:43 +01:00
Niv Sardi
36d8f6b925 gst_pad_check_reconfigure: only remove flag if set.
the code ifed a debug statement, that can't be right. anyway, the way it is,
we don't really need that branch, as we set the flag to unset only if set
(and that can't fail) hence the end result is always to unset the flag.

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=691985
2013-01-24 15:43:35 +01:00
Niv Sardi
d285109a5c basesrc: set NEED_RECONFIGURE flag if negotiate fails
When negotiation fails, mark the pad as needing a reconfigure again so
that it gets picked up again next time.

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=691986
2013-01-24 10:15:20 +01:00
Tim-Philipp Müller
e193509d4d tools: minor addition to gst-launch-1.0 man page
https://bugzilla.gnome.org/show_bug.cgi?id=692015
2013-01-21 11:26:25 +00:00
Tim-Philipp Müller
1df76342ef tools: update gst-launch-1.0 man page for new debug levels
There are more debug levels these days, not only 0-5.

https://bugzilla.gnome.org/show_bug.cgi?id=692015
2013-01-21 11:26:20 +00:00
Tim-Philipp Müller
7ae5371302 docs: add a note to the gst_adapter_take_buffer() docs about buffer flags
https://bugzilla.gnome.org/show_bug.cgi?id=682110
2013-01-17 10:33:57 +00:00
Tim-Philipp Müller
78c51ea628 tests: disable ABI checks for architectures where the struct sizes are not up-to-date
https://bugzilla.gnome.org/show_bug.cgi?id=691828
2013-01-17 10:33:57 +00:00
Tim-Philipp Müller
0712bec95b pipeline: add allow-none annotation for gst_pipeline_new()'s name property 2013-01-17 10:33:57 +00:00
Tim-Philipp Müller
bfa593bb11 docs: minor GstBaseParse docs fixes
Expose docs for gst_base_parse_finish_frame().
2013-01-17 10:33:57 +00:00
Wim Taymans
63e020c502 typefind: handle map failure 2013-01-17 10:33:57 +00:00
Wim Taymans
23570c6ca5 basesrc: handle map failure 2013-01-17 10:33:56 +00:00
Wim Taymans
ed001daaeb adapter: handle map failure 2013-01-17 09:34:05 +00:00