platform/upstream/gstreamer.git
9 years agoscripts:uninstalled: Make sur the GES TestManager is registered
Thibault Saunier [Mon, 10 Nov 2014 08:58:47 +0000 (09:58 +0100)]
scripts:uninstalled: Make sur the GES TestManager is registered

So that whenever user work with GstValidate they can run GES tests
within the gst-uninstalled environment

9 years agobuild: Update ax_pthread.m4 and move it to common
Arun Raghavan [Wed, 26 Nov 2014 16:18:05 +0000 (21:48 +0530)]
build: Update ax_pthread.m4 and move it to common

Has some updates for Clang support (might not work with newer Clang
properly, yet), AIX support, and some misc fixes.

9 years agotriggercontrolsource: Fix short description for the docs
Sebastian Dröge [Tue, 25 Nov 2014 16:46:12 +0000 (17:46 +0100)]
triggercontrolsource: Fix short description for the docs

9 years agodocs: add GST_GL_* environment variables to 'Running GStreamer' section
Tim-Philipp Müller [Tue, 25 Nov 2014 09:39:40 +0000 (09:39 +0000)]
docs: add GST_GL_* environment variables to 'Running GStreamer' section

9 years agoqueue2: percentage is relative to high-percent
Thiago Santos [Sun, 23 Nov 2014 08:45:24 +0000 (05:45 -0300)]
queue2: percentage is relative to high-percent

When comparing percentage values, compare with 0-100 scale as it
has already been made relative to 0-high_percent, otherwise we mark
the queue as not buffering and report a 50% to the user. This leads to
a buffering stall as the user assumes the queue is still buffering but
it thinks it isn't.

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

9 years agomultiqueue: percentage is an absolute value
Thiago Santos [Sun, 23 Nov 2014 08:42:51 +0000 (05:42 -0300)]
multiqueue: percentage is an absolute value

multiqueue's queues stored percent value is the percentage from 0
to 100 (max-size-*) and should be compared with the requested limit
(high_percentage) set by the user and not with 100% to check if
buffering should stop. Otherwise we are only stopping buffering when the
queue gets completely full.

9 years agobasetransform: Fix caps equality check
Sebastian Dröge [Thu, 20 Nov 2014 20:33:59 +0000 (21:33 +0100)]
basetransform: Fix caps equality check

Instead of checking if our outcaps are equivalent to the previous incaps, and
if that is the case not setting any caps on the pad... compare against our
previous outcaps because that's what we care about.

Fixes some cases where the outcaps became equivalent to the previous incaps,
but the previous outcaps were different and we were then sending buffers
downstream that were corresponding to the caps we forgot to set on the pad.
Resulting in crashes or image corruption.

9 years agocommon: update for bison version check patch
Tim-Philipp Müller [Thu, 20 Nov 2014 13:33:12 +0000 (13:33 +0000)]
common: update for bison version check patch

Fix configure check with bison development version.

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

9 years agostructure: don't overread input when searching for "
Wim Taymans [Thu, 20 Nov 2014 12:34:32 +0000 (13:34 +0100)]
structure: don't overread input when searching for "

When searching for the string terminator don't read past the ending
0-byte when escaping characters.
Add unit test for various escaping cases.

9 years agopad: fail dropped queries
Vincent Penquerc'h [Mon, 3 Nov 2014 17:46:57 +0000 (17:46 +0000)]
pad: fail dropped queries

Previously, dropping a query from a pad probe would deem the
query succeeded, and the caller might then assume the query's
results are valid, and thus dereference an invalid object
such as a GstCaps.

We now assume dropped queries did not succeed. Dropped events
and buffers are still deemed a success.

Added back after previous revert, as it's been double checked.

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

9 years agoRevert "pad: fail dropped queries"
Vincent Penquerc'h [Wed, 12 Nov 2014 13:55:23 +0000 (13:55 +0000)]
Revert "pad: fail dropped queries"

This was pushed by mistake along with an unrelated patch.

This reverts commit c7103ce4b8c1da7dcfbcf2ec83a42a376fb896e1.

9 years agobaseparse: allow skipping more data than we currently have
Vincent Penquerc'h [Tue, 13 May 2014 10:18:08 +0000 (11:18 +0100)]
baseparse: allow skipping more data than we currently have

This can be useful for skipping large unwanted data, such as
large album art, when we know the size of it from a metadata
header.

9 years agopad: fail dropped queries
Vincent Penquerc'h [Mon, 3 Nov 2014 17:46:57 +0000 (17:46 +0000)]
pad: fail dropped queries

Previously, dropping a query from a pad probe would deem the
query succeeded, and the caller might then assume the query's
results are valid, and thus dereference an invalid object
such as a GstCaps.

We now assume dropped queries did not succeed. Dropped events
and buffers are still deemed a success.

9 years agotask: Fix pause/stop race condition
Haakon Sporsheim [Wed, 12 Nov 2014 10:30:51 +0000 (11:30 +0100)]
task: Fix pause/stop race condition

If a task thread is calling pause on it self and the
controlling/"main" thread stops the task, it could end in a race
where gst_task_func loops and then checks for paused after the
controlling thread just changed the task state to stopped.
Hence the task would actually call func again even though it was
both paused and stopped.

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

9 years agogstobject: Don't check booleans for equality in the unit test
Sebastian Dröge [Mon, 10 Nov 2014 09:01:02 +0000 (10:01 +0100)]
gstobject: Don't check booleans for equality in the unit test

Every value other than 0/FALSE is TRUE, == TRUE will only check for 1.

9 years agogstobject: Add gst_object_has_parent()
Jan Alexander Steffens (heftig) [Wed, 5 Nov 2014 10:50:47 +0000 (11:50 +0100)]
gstobject: Add gst_object_has_parent()

Adds gst_object_has_parent, which works like gst_object_has_ancestor
but does not ascend further.

API: gst_object_has_parent()

9 years agobasetransform: Don't bother the subclass with setting the same caps multiple times
Sebastian Dröge [Sun, 9 Nov 2014 09:37:42 +0000 (10:37 +0100)]
basetransform: Don't bother the subclass with setting the same caps multiple times

9 years agobasesink: Don't bother the subclass with setting the same caps multiple times
Sebastian Dröge [Sun, 9 Nov 2014 09:32:18 +0000 (10:32 +0100)]
basesink: Don't bother the subclass with setting the same caps multiple times

9 years agobasesrc: Don't bother the subclass with setting the same caps multiple times
Sebastian Dröge [Sun, 9 Nov 2014 09:29:57 +0000 (10:29 +0100)]
basesrc: Don't bother the subclass with setting the same caps multiple times

9 years agostructure: remove conditional for G_VALUE_COLLECT_INIT
Stefan Sauer [Fri, 7 Nov 2014 07:22:02 +0000 (08:22 +0100)]
structure: remove conditional for G_VALUE_COLLECT_INIT

This API is in glib since 2.24 and we currently require 2.32 and already use
this unconditionally elsewhere.

9 years agopreset: remove commented code
Stefan Sauer [Wed, 5 Nov 2014 18:09:39 +0000 (19:09 +0100)]
preset: remove commented code

The GQuark was never used.

9 years agogstconfig: Put gstconfig.h into $(libdir)/gstreamer-1.0/include
Sebastian Dröge [Fri, 7 Nov 2014 10:34:08 +0000 (11:34 +0100)]
gstconfig: Put gstconfig.h into $(libdir)/gstreamer-1.0/include

It's architecture dependent and should not be placed into the include
directory as the assumption is that all those headers are architecture
independent.

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

9 years agouri: Fix gobject-introspection warnings
Sebastian Dröge [Fri, 7 Nov 2014 09:56:42 +0000 (10:56 +0100)]
uri: Fix gobject-introspection warnings

gsturi.c:997: Error: Gst: Skipping invalid GTK-Doc comment block:
/** private GstUri functions **/
^
gsturi.c:1179: Error: Gst: Skipping invalid GTK-Doc comment block:
/** RFC 3986 functions **/
^

9 years agodataqueue: Fix gst_data_queue_new() description.
Jan Schmidt [Fri, 24 Oct 2014 10:25:54 +0000 (21:25 +1100)]
dataqueue: Fix gst_data_queue_new() description.

Reword the function docs, which haven't made any sense since
gst_data_queue_new_full() was removed a few years ago.

9 years agobasesink: Answer the query position when receiving it from upstream
Thibault Saunier [Mon, 3 Nov 2014 17:27:21 +0000 (18:27 +0100)]
basesink: Answer the query position when receiving it from upstream

Currently we are just returning FALSE, but we do have the information
we should just answer the query the same way as when answering through
the GstElement.query vmethod default implementation.

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

9 years agocapsfilter: Add an optional delayed caps change mode
Sebastian Dröge [Wed, 22 Oct 2014 12:07:09 +0000 (14:07 +0200)]
capsfilter: Add an optional delayed caps change mode

In this mode we accept previously set filter caps until
upstream renegotiates to something that is compatible
to the current filter caps.

This allows dynamic caps changes in the pipeline even
if there is a queue between any conversion element
and the capsfilter. Without this we would get not-negotiated
errors if timing is bad.

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

9 years agotoc: minor code clean-up
Tim-Philipp Müller [Sun, 2 Nov 2014 20:16:53 +0000 (20:16 +0000)]
toc: minor code clean-up

And get rid of g_list_prepend/g_list_reverse
anti-pattern while we're at it.

9 years agogst: ensure GStreamer initialization debug message is displayed
Luis de Bethencourt [Sun, 2 Nov 2014 18:51:08 +0000 (18:51 +0000)]
gst: ensure GStreamer initialization debug message is displayed

The GST_INFO ("initialized GStreamer succesfully") is currently at the end of
gst_init_check which isn't guaranteed to be run since GStreamer can be
initialized by using init_pre and init_post directly from GOptionContext like
gst-launch does. Ensure this message is displayed by moving it to init_post.

9 years agodoc: Do not use deprecated gtk-doc 'Rename to' tag
Luis de Bethencourt [Sat, 1 Nov 2014 19:56:41 +0000 (19:56 +0000)]
doc: Do not use deprecated gtk-doc 'Rename to' tag

GObject introspection GTK-Doc tag "Rename to" has been deprecated, changing to
rename-to annotation.

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

9 years agogst-inspect: add G_PARAM_DEPRECATED to known flags
Aurélien Zanelli [Sat, 1 Nov 2014 21:30:30 +0000 (22:30 +0100)]
gst-inspect: add G_PARAM_DEPRECATED to known flags

Display 'deprecated' instead of flag value when using G_PARAM_DEPRECATED
in element properties.

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

9 years agotests: refactor tools check a little
Tim-Philipp Müller [Fri, 31 Oct 2014 16:10:01 +0000 (16:10 +0000)]
tests: refactor tools check a little

Use an array of constant strings so if arguments get
removed from it they are not considered leaked, and
valgrind is happy. Still some stuff leaking in GLib
though.

9 years agotests: fix out-of-bounds memory access in bytereader unit test
Tim-Philipp Müller [Thu, 30 Oct 2014 23:14:59 +0000 (23:14 +0000)]
tests: fix out-of-bounds memory access in bytereader unit test

Caught by -fsanitize=address / libasan.

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

9 years agogst: make gst_init() thread-safe
Tim-Philipp Müller [Tue, 28 Oct 2014 19:16:52 +0000 (19:16 +0000)]
gst: make gst_init() thread-safe

Because we can, and there isn't really any
reason not to do so.

9 years agotests: fdsrc: don't ignore return value of write()
Tim-Philipp Müller [Tue, 28 Oct 2014 09:28:28 +0000 (09:28 +0000)]
tests: fdsrc: don't ignore return value of write()

Causes compiler warnings on some systems.

9 years agotests: fix fdsrc test corner case
Tim-Philipp Müller [Tue, 28 Oct 2014 00:04:05 +0000 (00:04 +0000)]
tests: fix fdsrc test corner case

Make pipe socket non-blocking, so we don't
end up being blocked in a write on the pipe
while the src is eos and not reading data
any more, and thus we never unblock and never
notice that we're done. This would happen
quite reliably on the rpi.

9 years agoAutomatic update of common submodule
Sebastian Dröge [Mon, 27 Oct 2014 16:56:15 +0000 (17:56 +0100)]
Automatic update of common submodule

From 84d06cd to 7bb2bce

9 years agodebugutils: Trivial typo fix
Arun Raghavan [Sat, 25 Oct 2014 11:45:42 +0000 (17:15 +0530)]
debugutils: Trivial typo fix

9 years agobasesink: don't unlock mutex that is not locked
Tim-Philipp Müller [Fri, 24 Oct 2014 11:51:07 +0000 (12:51 +0100)]
basesink: don't unlock mutex that is not locked

Fixes 'Attempt to unlock mutex that was not locked'
warning with newer GLibs when sink is shut down in
certain situations. Triggered by the decodebin
test_reuse_without_decoders unit test in -base
sometimes, esp. on slower machines.

9 years agowin32: update .def for new _get_type() function for GstControlPoint
Tim-Philipp Müller [Wed, 22 Oct 2014 17:25:26 +0000 (18:25 +0100)]
win32: update .def for new _get_type() function for GstControlPoint

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

9 years agotimedvaluecontrolsource: Add some signals about values changes
Thibault Saunier [Mon, 29 Sep 2014 19:10:14 +0000 (21:10 +0200)]
timedvaluecontrolsource: Add some signals about values changes

In order for user to be able to track changes in the value set in
GstTimedValueControlSource the following signals have been added:
 * value-added
 * value-removed
 * value-changed

To be able to use a GstControlPoint to be marshalled into the signals,
the GstControlPoint structure is now registerd as a GBoxed type.

New API:
~~~~~~~
  * GstTimedValueControlSource::value-added
  * GstTimedValueControlSource::value-removed
  * GstTimedValueControlSource::value-added

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

9 years agoAutomatic update of common submodule
Tim-Philipp Müller [Tue, 21 Oct 2014 12:01:00 +0000 (13:01 +0100)]
Automatic update of common submodule

From a8c8939 to 84d06cd

9 years agomessage: remove duplicate gst_message_get_type() in init
Tim-Philipp Müller [Tue, 21 Oct 2014 11:18:33 +0000 (12:18 +0100)]
message: remove duplicate gst_message_get_type() in init

Spotted by: Jan Steffens

9 years agoAutomatic update of common submodule
Stefan Sauer [Tue, 21 Oct 2014 10:57:45 +0000 (12:57 +0200)]
Automatic update of common submodule

From 6e75498 to a8c8939

9 years agoidentity: include the actual delta in the message
Stefan Sauer [Mon, 20 Oct 2014 14:39:38 +0000 (16:39 +0200)]
identity: include the actual delta in the message

Including the actual delta in the message makes it easy to see, if the new
buffer is behind or ahead and how much.

9 years agogstvalue: Tidy initialisation
Jan Schmidt [Sat, 18 Oct 2014 07:43:43 +0000 (18:43 +1100)]
gstvalue: Tidy initialisation

Use some macros to make our value functions setup a bit
tidier, and micro-optimise a few reallocs by setting an
initial size for the global type arrays.

9 years agogst-indent: Run indent twice. Once is not idempotent, twice seems to be.
Jan Schmidt [Sat, 18 Oct 2014 06:27:04 +0000 (17:27 +1100)]
gst-indent: Run indent twice. Once is not idempotent, twice seems to be.

9 years agomultiqueue: Wake up any waiting streams if the current one goes EOS
Andrei Sarakeev [Thu, 16 Oct 2014 06:13:14 +0000 (10:13 +0400)]
multiqueue: Wake up any waiting streams if the current one goes EOS

Otherwise we might have unlinked streams waiting.

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

9 years agotypefind: simplify registration code
Stefan Sauer [Fri, 17 Oct 2014 10:41:04 +0000 (12:41 +0200)]
typefind: simplify registration code

Remove a useless assert (we just instantiated this type). Drop the free'ing of
the extension array. As we just created the instance this is always NULL.

9 years agodocs: pwd: fix typos
Felix Schwarz [Thu, 16 Oct 2014 08:55:36 +0000 (10:55 +0200)]
docs: pwd: fix typos

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

9 years agotests: Add a test for removing a bus watch
Linus Svensson [Sat, 11 Oct 2014 17:28:21 +0000 (19:28 +0200)]
tests: Add a test for removing a bus watch

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

9 years agobus: Add a function to remove a bus watch
Linus Svensson [Tue, 19 Aug 2014 21:28:52 +0000 (23:28 +0200)]
bus: Add a function to remove a bus watch

If a bus watch is added to the non default main context it's not
possible to remove it using g_source_remove().

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

9 years agodocs: Update GstQOSType documentation a bit
Arun Raghavan [Wed, 8 Oct 2014 17:21:56 +0000 (22:51 +0530)]
docs: Update GstQOSType documentation a bit

Correction for who is producing data too fast, and some other minor
clarifications.

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

9 years agodocs: pwg: fix two typos
Guillaume Desmottes [Wed, 8 Oct 2014 14:03:20 +0000 (16:03 +0200)]
docs: pwg: fix two typos

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

9 years agodocs: pwg: fix typo in 'Dynamic negotiation' section
Guillaume Desmottes [Wed, 8 Oct 2014 13:37:37 +0000 (15:37 +0200)]
docs: pwg: fix typo in 'Dynamic negotiation' section

The point of this example is to show how to set caps
on the source pad once it has been set on the sink pad.
So, in passthrough mode, the caps is just copied to the
source pad.

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

9 years agomultiqueue: don't lock multiqueue when pushing serialized queries
Aleix Conchillo Flaqué [Wed, 8 Oct 2014 16:37:41 +0000 (09:37 -0700)]
multiqueue: don't lock multiqueue when pushing serialized queries

If we are pushing a serialized query into a queue and the queue is
filled, we will end in a deadlock. We need to release the lock before
pushing and acquire it again afterward.

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

9 years agocollectpads: Use GST_PTR_FORMAT in debug to output buffer details
Jan Schmidt [Tue, 7 Oct 2014 14:33:51 +0000 (01:33 +1100)]
collectpads: Use GST_PTR_FORMAT in debug to output buffer details

Use %GST_PTR_FORMAT instead of %p in debug output so all the buffer
details are output

9 years agosystemclock: fix multi-thread entry status issue
Nicolas Huet [Mon, 6 Oct 2014 11:38:21 +0000 (13:38 +0200)]
systemclock: fix multi-thread entry status issue

Running two threads, one executing the timer and one unscheduling it, the
unscheduled status set by the second thread is sometimes overwritten by the
first one.

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

9 years agoinputselector: fix compilation
Tim-Philipp Müller [Fri, 3 Oct 2014 13:04:58 +0000 (14:04 +0100)]
inputselector: fix compilation

9 years agoinput-selector: extract some common code into helpers
Stefan Sauer [Fri, 3 Oct 2014 12:44:48 +0000 (14:44 +0200)]
input-selector: extract some common code into helpers

9 years agoinput-selector: small code cleanups
Stefan Sauer [Fri, 3 Oct 2014 12:01:59 +0000 (14:01 +0200)]
input-selector: small code cleanups

Rename TIMESTAMP -> PTS. Move a var down to the scope where it is used. Use
g_queue_free_full().

9 years agoinputselector: fix printf format
Stefan Sauer [Fri, 3 Oct 2014 11:47:42 +0000 (13:47 +0200)]
inputselector: fix printf format

The padcount is uint. Also add comments to the instance vars.

9 years agobaseparse: don't leak caps in gst_base_parse_process_streamheader
Matej Knopp [Thu, 2 Oct 2014 01:30:24 +0000 (03:30 +0200)]
baseparse: don't leak caps in gst_base_parse_process_streamheader

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

9 years agotests: baseparse: set_sink_caps vfunc should't take ownership of the caps
Matej Knopp [Fri, 3 Oct 2014 11:14:25 +0000 (13:14 +0200)]
tests: baseparse: set_sink_caps vfunc should't take ownership of the caps

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

9 years agofakesrc: mark the pattern property as unused
Luis de Bethencourt [Fri, 3 Oct 2014 08:57:37 +0000 (09:57 +0100)]
fakesrc: mark the pattern property as unused

Revert the previous commit which removes the pattern property of fakesrc because
doing so will break ABI. Bringing the property back but marking it as unused
in the property string.

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

9 years agoRevert "baseparse: don't leak caps in gst_base_parse_process_streamheader"
Tim-Philipp Müller [Fri, 3 Oct 2014 08:01:15 +0000 (09:01 +0100)]
Revert "baseparse: don't leak caps in gst_base_parse_process_streamheader"

This reverts commit 5e8b4bf085180f7a4c7ae6ec0f525baeaedd4df8.

This causes refcounting criticals in the baseparse unit test.

9 years agofakesrc: removing unused pattern option
Luis de Bethencourt [Thu, 2 Oct 2014 12:45:34 +0000 (13:45 +0100)]
fakesrc: removing unused pattern option

Eventhough the "pattern" property of fakesrc can be set, it is never used. The
only pattern supported is the default 0x00 -> 0xff, and if a pattern is set by
the user it is ignored. Removing the unused property and variable.

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

9 years agoqueue: Add missing break in switch
Sebastian Dröge [Thu, 2 Oct 2014 11:55:22 +0000 (14:55 +0300)]
queue: Add missing break in switch

9 years agoqueue: update segment position on GAP events to calculate levels properly
Sebastian Dröge [Thu, 2 Oct 2014 08:00:32 +0000 (11:00 +0300)]
queue: update segment position on GAP events to calculate levels properly

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

9 years agoqueue2: update segment position on GAP events to calculate levels properly
Sebastian Dröge [Thu, 2 Oct 2014 07:57:43 +0000 (10:57 +0300)]
queue2: update segment position on GAP events to calculate levels properly

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

9 years agomultiqueue: update segment position on GAP events to calculate levels properly
Matej Knopp [Sat, 27 Sep 2014 18:10:34 +0000 (20:10 +0200)]
multiqueue: update segment position on GAP events to calculate levels properly

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

9 years agobaseparse: don't leak caps in gst_base_parse_process_streamheader
Matej Knopp [Thu, 2 Oct 2014 01:30:24 +0000 (03:30 +0200)]
baseparse: don't leak caps in gst_base_parse_process_streamheader

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

9 years agocapsfilter: Push pending events before a buffer also if upstream never configured...
Sebastian Dröge [Thu, 2 Oct 2014 07:13:28 +0000 (10:13 +0300)]
capsfilter: Push pending events before a buffer also if upstream never configured caps but we have srcpad caps already

Otherwise we never send pending events downstream that arrive after we
configured caps on the srcpad.

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

9 years agouri: Don't unconditionally use g_list_copy_deep()
Sebastian Dröge [Mon, 29 Sep 2014 14:48:29 +0000 (17:48 +0300)]
uri: Don't unconditionally use g_list_copy_deep()

We don't depend on GLib 2.34 yet and just for this seems a bit useless.

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

9 years agouri: Include our own BSD licensed copy of strcasestr() for Windows and others
Sebastian Dröge [Mon, 29 Sep 2014 13:22:47 +0000 (16:22 +0300)]
uri: Include our own BSD licensed copy of strcasestr() for Windows and others

9 years agouri: Fix compiler warnings with gcc
Sebastian Dröge [Mon, 29 Sep 2014 12:54:37 +0000 (15:54 +0300)]
uri: Fix compiler warnings with gcc

These are actually not true.

gsturi.c: In function '_gst_uri_string_to_table.constprop':
gsturi.c:1316:27: error: 'pct_kv_sep' may be used uninitialized in this function [-Werror=maybe-uninitialized]
             for (next_sep = strcasestr (value, pct_kv_sep); next_sep;
                           ^
gsturi.c:1283:24: error: 'pct_part_sep' may be used uninitialized in this function [-Werror=maybe-uninitialized]
               next_sep = strcasestr (next_sep + 1, pct_part_sep)) {
                        ^

9 years agouri: Fix memory leak in gst_uri_join()
Sebastian Dröge [Mon, 29 Sep 2014 09:19:35 +0000 (12:19 +0300)]
uri: Fix memory leak in gst_uri_join()

The merged path segments are a deep-copied list and we need to free the
contained strings too instead of just the list nodes themselves.

9 years agoGstUri: Add GstUri miniobject to handle URIs in an RFC 3986 compliant fashion
David Waring [Thu, 31 Jul 2014 21:18:53 +0000 (22:18 +0100)]
GstUri: Add GstUri miniobject to handle URIs in an RFC 3986 compliant fashion

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

9 years agoscripts: add gst-rpicamsrc to gst-uninstalled
Tim-Philipp Müller [Sat, 27 Sep 2014 12:57:42 +0000 (13:57 +0100)]
scripts: add gst-rpicamsrc to gst-uninstalled

9 years agofixme: bump leftover 0.11 fixme comments
Stefan Sauer [Thu, 25 Sep 2014 19:21:09 +0000 (21:21 +0200)]
fixme: bump leftover 0.11 fixme comments

9 years agoevent: 'newsegment' to 'segment' in the docs
Stefan Sauer [Thu, 25 Sep 2014 19:04:23 +0000 (21:04 +0200)]
event: 'newsegment' to 'segment' in the docs

Brings the api-docs in sync with the 1.0 api rename.

9 years agobasesrc: move the quick return up
Stefan Sauer [Thu, 25 Sep 2014 18:23:31 +0000 (20:23 +0200)]
basesrc: move the quick return up

Don't assign local vars if we skip anyway. Add logging for failure conditio

9 years agotests: parallelise 'make valgrind'
Tim-Philipp Müller [Thu, 25 Sep 2014 18:01:52 +0000 (19:01 +0100)]
tests: parallelise 'make valgrind'

Use $(MAKE) instead of 'make' inside the Makefile,
otherwise the make will run as if -j1 had been
specified and complain about the job server not
being available, and with $(MAKE) in inherits the
parent make's settings it seems.

Upgrade common submodule for parallel check-valgrind.

Let this settle a bit before upgrading the other modules.

9 years agowin32: update .def file
Tim-Philipp Müller [Thu, 25 Sep 2014 17:57:32 +0000 (18:57 +0100)]
win32: update .def file

It's sorted. If it's unsorted, make check-exports fails.

9 years agoinfo: remove confusing warning about running under valgrind
Tim-Philipp Müller [Thu, 25 Sep 2014 17:55:03 +0000 (18:55 +0100)]
info: remove confusing warning about running under valgrind

We're not actually doing anything differently anywhere when
we detect that we're running under valgrind, so let's not
print that confusing message that makes people wonder how
they can switch it off so they can valgrind the normal
code paths. Seeing that we're not doing that nor have done
so in the last 10 years we might just as well remove the
entire check actually.

9 years agotests: fix caps leak in baseparse unit test
Tim-Philipp Müller [Thu, 25 Sep 2014 15:21:51 +0000 (16:21 +0100)]
tests: fix caps leak in baseparse unit test

9 years agoflowcombiner: add a gst_flow_combiner_clear() method
Jonas Holmberg [Thu, 25 Sep 2014 12:54:23 +0000 (14:54 +0200)]
flowcombiner: add a gst_flow_combiner_clear() method

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

API: gst_flow_combiner_clear()

9 years agoscripts: Handle gst-python in gst-uninstalled
Thibault Saunier [Wed, 24 Sep 2014 08:11:54 +0000 (10:11 +0200)]
scripts: Handle gst-python in gst-uninstalled

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

9 years agocapsfilter: Remove EOS event from pending_event list on FLUSH_STOP
Thibault Saunier [Tue, 3 Jun 2014 12:23:30 +0000 (14:23 +0200)]
capsfilter: Remove EOS event from pending_event list on FLUSH_STOP

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

9 years agodocs: Fix GstBuffer typo "memory bock" -> "memory block"
William Manley [Mon, 22 Sep 2014 13:27:05 +0000 (14:27 +0100)]
docs: Fix GstBuffer typo "memory bock" -> "memory block"

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

9 years agodocs: Improve gst_buffer_get_meta() to clear up confusion
William Manley [Mon, 22 Sep 2014 16:27:31 +0000 (17:27 +0100)]
docs: Improve gst_buffer_get_meta() to clear up confusion

I was confused by the existence of `gst_buffer_get_meta` as it suggested
to me that you should only attach one of any type of GstMeta to a buffer.
It's perfectly fine to attach multiple from a single API so I'm
documenting that here.

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

9 years agodatetime: added missing include directives
Marcin Kolny [Mon, 22 Sep 2014 17:05:32 +0000 (19:05 +0200)]
datetime: added missing include directives

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

9 years agoqueue: Do not forget to release the QUEUE_LOCK in the out_flow_error path
Thibault Saunier [Tue, 23 Sep 2014 12:31:29 +0000 (14:31 +0200)]
queue: Do not forget to release the QUEUE_LOCK in the out_flow_error path

Avoiding deadlocks!

9 years agodocs: fix a small contradition in the docs
Stefan Sauer [Tue, 23 Sep 2014 10:53:18 +0000 (12:53 +0200)]
docs: fix a small contradition in the docs

The vmethod get_size() shall return the size in 'format' as configured by
_set_format().

9 years agoqueue: Do not hold GST_QUEUE_LOCK while posting ERROR messages
Thibault Saunier [Mon, 22 Sep 2014 07:33:04 +0000 (09:33 +0200)]
queue: Do not hold GST_QUEUE_LOCK while posting ERROR messages

This might create deadlocks and we need to avoid holding element
specific lock while posting messages

For example a deadlock will happen if while posting the message,
someone connected on the bus (sync) tries to DOT the pipeline.

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

9 years agoqueue2: do not post buffering messages holding the lock
Thiago Santos [Fri, 19 Sep 2014 15:02:46 +0000 (12:02 -0300)]
queue2: do not post buffering messages holding the lock

It might cause deadlocks to post messages while holding the queue2
lock. To avoid this a new boolean flag is set whenever a new
buffering percent is found. The message is posted after the lock
is released.

To make sure the buffering messages are posted in the right order, messages
are posted holding another lock. This prevents 2 threads trying to post
messages at the same time.

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

9 years agogsturi: Remove unnecessary code
Ravi Kiran K N [Fri, 19 Sep 2014 04:12:10 +0000 (09:42 +0530)]
gsturi: Remove unnecessary code

gst_uri_handler_set_uri() function has new_uri, location and colon
are not necessary, they can be removed.

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

9 years agodocs: pwg: fix some links to the API docs
Tim-Philipp Müller [Thu, 18 Sep 2014 23:33:58 +0000 (00:33 +0100)]
docs: pwg: fix some links to the API docs

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

9 years agofilesrc: remove FIXME
Tim-Philipp Müller [Thu, 18 Sep 2014 17:55:47 +0000 (18:55 +0100)]
filesrc: remove FIXME

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

9 years agogst: Fix spelling error
Olivier Crête [Thu, 18 Sep 2014 01:49:18 +0000 (21:49 -0400)]
gst: Fix spelling error

Thank to Adrian Owen for reporting this error.

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

9 years agotypefindelement: do not leak sticky events in flush_stop
Ognyan Tonchev [Wed, 17 Sep 2014 15:17:10 +0000 (17:17 +0200)]
typefindelement: do not leak sticky events in flush_stop

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