Vincent Penquerc'h [Fri, 27 Jan 2012 11:32:12 +0000 (11:32 +0000)]
gstplugin: add a few consts to read only data
Tim-Philipp Müller [Sat, 21 Jan 2012 12:56:50 +0000 (12:56 +0000)]
scripts: set GI_TYPELIB_PATH in gst-uninstalled
So pygi finds/uses the local g-i files.
Vincent Penquerc'h [Fri, 20 Jan 2012 18:06:04 +0000 (18:06 +0000)]
libcheck: make the definition of fail not fail with non GCC compilers
Colin Walters [Tue, 17 Jan 2012 21:23:33 +0000 (16:23 -0500)]
build: add --disable-fatal-warnings configure option
It's reasonable to build from git, but not want to turn all compiler
warnings into fatal errors. For example, GNOME's jhbuild helps people
get newer versions of software than came from their distribution, but
they may not necessarily want to hack on it.
Mark Nauwelaerts [Thu, 19 Jan 2012 11:57:48 +0000 (12:57 +0100)]
tests: clockstress: perform sanity check on thread number argument
Vincent Penquerc'h [Fri, 13 Jan 2012 10:43:12 +0000 (10:43 +0000)]
gst-inspect: plug factory leak on error
Antoine Tremblay [Thu, 12 Jan 2012 19:53:11 +0000 (19:53 +0000)]
baseparse: clear adapter in reset so baseparse is reusable
GstBaseParse was not clearing its adapter on reset causing
problems when a pipeline went for example from PLAYING to NULL
state and then back to PLAYING again. The data from the last
stream would be used in the parser.
https://bugzilla.gnome.org/show_bug.cgi?id=667444
Vincent Penquerc'h [Thu, 12 Jan 2012 15:50:53 +0000 (15:50 +0000)]
gstinspect: fix features and list leaks
Vincent Penquerc'h [Wed, 11 Jan 2012 12:19:20 +0000 (12:19 +0000)]
gststructure: clarify _get docs about the returned reference
https://bugzilla.gnome.org/show_bug.cgi?id=667689
Havard Graff [Tue, 29 Nov 2011 13:22:44 +0000 (14:22 +0100)]
basesink: don't compensate for render-delay twice
https://bugzilla.gnome.org/show_bug.cgi?id=667298
Idar Tollefsen [Sun, 1 Jan 2012 15:32:27 +0000 (16:32 +0100)]
build: don't output configure options via autogen if $NOCONFIGURE is set
https://bugzilla.gnome.org/show_bug.cgi?id=667296
Tim-Philipp Müller [Thu, 5 Jan 2012 00:30:30 +0000 (00:30 +0000)]
gst: include locale.h before any other i18n headers
This is also how we do it in -base.
https://bugzilla.gnome.org/show_bug.cgi?id=667290
Idar Tollefsen [Sun, 1 Jan 2012 15:46:04 +0000 (16:46 +0100)]
gstconfig.h: adds and uses SunPro visibility attribute for proper function exports
Define GST_EXPORT for SunPro.
https://bugzilla.gnome.org/show_bug.cgi?id=667289
Idar Tollefsen [Sun, 1 Jan 2012 15:47:14 +0000 (16:47 +0100)]
plugins: explicitly cast initialization values to the correct type
https://bugzilla.gnome.org/show_bug.cgi?id=667288
Idar Tollefsen [Sun, 1 Jan 2012 19:17:41 +0000 (20:17 +0100)]
poll: include correct poll.h based on autoconf test
https://bugzilla.gnome.org/show_bug.cgi?id=667286
Tim-Philipp Müller [Wed, 4 Jan 2012 23:46:19 +0000 (23:46 +0000)]
configure: check for sys/poll.h
https://bugzilla.gnome.org/show_bug.cgi?id=667286
Tim-Philipp Müller [Mon, 2 Jan 2012 00:17:17 +0000 (00:17 +0000)]
tags: add GST_TAG_LANGUAGE_NAME
API: GST_TAG_LANGUAGE_NAME
David Schleef [Sun, 1 Jan 2012 01:37:20 +0000 (17:37 -0800)]
convert Makefile spaces to tabs
Thiago Santos [Thu, 29 Dec 2011 19:56:46 +0000 (16:56 -0300)]
output-selector: Do not false warn about unlinked pad
When output-selector didn't receive a newsegment event it would
warn about pad being unlinked when switching pads. Making the logs
wrong and misleading.
Tim-Philipp Müller [Mon, 26 Dec 2011 11:26:05 +0000 (11:26 +0000)]
value: micro-optimisation: avoid some unnecessary g_value_unset()
We know there's nothing to do here and can save us the function
calls and GValueTable lookups.
Tim-Philipp Müller [Sun, 25 Dec 2011 12:39:49 +0000 (12:39 +0000)]
filesrc: return any remaining data on EOS before returning FLOW_UNEXPECTED
Tim-Philipp Müller [Sun, 25 Dec 2011 12:29:46 +0000 (12:29 +0000)]
filesrc: minor cosmetic changes
Rename woffset variable, maintain separate bytes_read in addition
to length variable.
Mark Nauwelaerts [Fri, 2 Dec 2011 13:10:32 +0000 (14:10 +0100)]
pipeline: only have a top-level pipeline do pipeline management
Fixes #665390.
Tim-Philipp Müller [Mon, 19 Dec 2011 20:57:44 +0000 (20:57 +0000)]
win32: add new collectpads2 function to .def file
Mark Nauwelaerts [Fri, 16 Dec 2011 16:59:22 +0000 (17:59 +0100)]
collectpads2: add convenience clipping function
... which also converts to running time; useful for typical muxer.
Mark Nauwelaerts [Mon, 19 Dec 2011 16:38:18 +0000 (17:38 +0100)]
basetransform: do not delay sparse stream newsegment updates
Mark Nauwelaerts [Mon, 19 Dec 2011 11:33:18 +0000 (12:33 +0100)]
basetransform: suggestion compatible with upstream is not much of a suggestion
... in that upstream is already complying with that suggestion.
Fixes #666174.
Mark Nauwelaerts [Thu, 15 Dec 2011 13:31:05 +0000 (14:31 +0100)]
collectpads2: delay collecting buffer if a pad newly set waiting
... as commented; make code correspond to it (again).
Stefan Sauer [Thu, 15 Dec 2011 15:06:30 +0000 (16:06 +0100)]
controller: user the parent_class vars from G_DEFINE_TYPE
Vincent Penquerc'h [Mon, 12 Dec 2011 13:05:36 +0000 (13:05 +0000)]
filesrc: do not mistake short reads for EOS
While local filesystems will usually not cause short reads,
this may happen on seekable files on some remote filesystems.
Instead, loop till we get the requested amount of data, or
an actual EOS (ie, 0 bytes).
https://bugzilla.gnome.org/show_bug.cgi?id=665921
Matej Knopp [Mon, 14 Nov 2011 01:26:31 +0000 (02:26 +0100)]
baseparse: Clear queued frames with other queues
Sebastian Dröge [Mon, 12 Dec 2011 10:54:56 +0000 (11:54 +0100)]
glib-compat: Add license boilerplate for LGPL
Tim-Philipp Müller [Sat, 10 Dec 2011 01:16:05 +0000 (01:16 +0000)]
po: update translations
Stefan Sauer [Wed, 7 Dec 2011 15:01:07 +0000 (16:01 +0100)]
preset: allow applications to specify an extra preset dir
An extra application preset dir help to organize presets created for special
purposes. Fixes #660760
API: gst_preset_set_app_dir(), gst_preset_get_app_dir()
Sebastian Dröge [Thu, 8 Dec 2011 17:00:00 +0000 (18:00 +0100)]
basetransform: Fix code path to come up with possible caps if incompatible caps are provided to buffer_alloc()
Previous code could almost never work and this should be slightly
better.
Sebastian Dröge [Thu, 8 Dec 2011 16:21:30 +0000 (17:21 +0100)]
basetransform: Fall back to upstream provided caps if suggested caps are not supported by the sinkpad
Sebastian Dröge [Thu, 8 Dec 2011 16:07:05 +0000 (17:07 +0100)]
basetransform: Fall back to upstream provided caps if fixation of suggested caps failed
Sebastian Dröge [Thu, 8 Dec 2011 16:02:28 +0000 (17:02 +0100)]
basetransform: Refactor gst_base_transform_buffer_alloc() code
Don't check if upstream provided caps are compatible with upstream
and don't try to fixate these caps. They must be fixated in any case.
Vincent Penquerc'h [Wed, 7 Dec 2011 17:57:49 +0000 (17:57 +0000)]
baseparse: do not use a byte value instead of a time value when bisecting
This fixes FLAC seeking on some FLAC files.
Sebastian Dröge [Wed, 7 Dec 2011 10:04:42 +0000 (11:04 +0100)]
selector: Push newsegment events before any buffers are pushed in the unit test
Sebastian Dröge [Wed, 7 Dec 2011 10:01:49 +0000 (11:01 +0100)]
inputselector: Don't send a NEWSEGMENT event if a buffer arrived before the segment was configured
Sebastian Dröge [Wed, 7 Dec 2011 10:01:31 +0000 (11:01 +0100)]
outputselector: Don't send last segment/buffer when no segment was configured yet
Sebastian Dröge [Wed, 7 Dec 2011 08:50:40 +0000 (09:50 +0100)]
basetransform: If suggested caps are not compatible with upstream try to come up with compatible caps
Fixes bug #662199.
Tim-Philipp Müller [Tue, 6 Dec 2011 23:52:53 +0000 (23:52 +0000)]
indexfactory: fix memory leak
Introduced by commit
bd302bb6 pluginfeature: avoid duplicating feature->name
https://bugzilla.gnome.org/show_bug.cgi?id=459466
https://bugzilla.gnome.org/show_bug.cgi?id=665703
Sebastian Dröge [Tue, 6 Dec 2011 13:55:15 +0000 (14:55 +0100)]
fakesink: Make event/buffer verbose output consistent with identity
Sebastian Dröge [Tue, 6 Dec 2011 13:55:11 +0000 (14:55 +0100)]
identity: Print buffer flags in the verbose output
Sebastian Dröge [Tue, 6 Dec 2011 13:53:47 +0000 (14:53 +0100)]
fakesrc: Make event/buffer verbose output consistent with identity and print buffer flags
Tim-Philipp Müller [Sun, 4 Dec 2011 21:19:04 +0000 (21:19 +0000)]
check: allow non-joinable threads in private g_thread_create() copy
Looks like some tests use non-joinable threads after all.
Tim-Philipp Müller [Sun, 4 Dec 2011 14:38:26 +0000 (14:38 +0000)]
Suppress deprecation warnings in selected files, for g_static_rec_mutex_* mostly
GStaticRecMutex is part of our API/ABI, not much we can do here in 0.10.
Tim-Philipp Müller [Sun, 4 Dec 2011 13:35:38 +0000 (13:35 +0000)]
Work around deprecated thread API in glib master
Add private replacements for deprecated functions such as
g_mutex_new(), g_mutex_free(), g_cond_new() etc., mostly
to avoid the deprecation warnings. We can't change most of
these in 0.10 because they're part of our API and ABI.
Tim-Philipp Müller [Sun, 4 Dec 2011 13:09:53 +0000 (13:09 +0000)]
benchmarks: g_thread_create() is deprecated in GLib master, use g_thread_try_new() instead
Tim-Philipp Müller [Sun, 4 Dec 2011 13:04:35 +0000 (13:04 +0000)]
net: initialise GError variables to NULL
Tim-Philipp Müller [Sat, 3 Dec 2011 17:40:53 +0000 (17:40 +0000)]
g_thread_init() is deprecated in glib master
It's not needed any longer.
Tim-Philipp Müller [Sat, 3 Dec 2011 16:02:36 +0000 (16:02 +0000)]
tagsetter: update for thread API deprecations in glib master
Tim-Philipp Müller [Sat, 3 Dec 2011 15:36:58 +0000 (15:36 +0000)]
taglist: update for thread API deprecations in glib master
Tim-Philipp Müller [Sat, 3 Dec 2011 13:58:51 +0000 (13:58 +0000)]
g_thread_create() is deprecated in GLib master, use g_thread_try_new() instead
Mark Nauwelaerts [Fri, 2 Dec 2011 12:19:38 +0000 (13:19 +0100)]
identity: unlock clock wait when appropriate
... notably FLUSH and state change to READY.
Stefan Sauer [Thu, 1 Dec 2011 15:25:07 +0000 (16:25 +0100)]
bus: use GST_MESSAGE_SOURCE_NAME() which also takes care of src=NULL.
Sebastian Dröge [Wed, 30 Nov 2011 12:59:46 +0000 (13:59 +0100)]
basetransform: Always intersect the suggested sink caps with the peer caps
This makes sure that we get correct and complete caps. The suggested caps
could be incomplete, e.g. video/x-raw-rgb without any fields, and by
intersecting with the peer caps we get something usable.
Fixes bug #662199.
Tim-Philipp Müller [Wed, 30 Nov 2011 00:24:32 +0000 (00:24 +0000)]
event: warn and fail instead of creating newsegment events in GST_FORMAT_UNDEFINED
Vincent Penquerc'h [Mon, 28 Nov 2011 12:30:15 +0000 (12:30 +0000)]
gstelement: add gst_element_class_add_pad_template_from_static
This function helps ensure the pad template is unreffed
without having to complicate the calling code.
https://bugzilla.gnome.org/show_bug.cgi?id=662664
Tim-Philipp Müller [Mon, 28 Nov 2011 01:10:20 +0000 (01:10 +0000)]
queue2: fix refactoring of draining-on-eos, munge flow return to FLOW_OK
Tim-Philipp Müller [Thu, 3 Nov 2011 10:34:49 +0000 (10:34 +0000)]
queue2: add bufferlist support
We want to maintain buffer lists if possible.
Tim-Philipp Müller [Thu, 3 Nov 2011 13:02:36 +0000 (13:02 +0000)]
queue2: split out draining of queue on FLOW_UNEXPECTED into separate function
Tim-Philipp Müller [Thu, 3 Nov 2011 08:55:20 +0000 (08:55 +0000)]
queue2: pass item type enum to _enqueue instead of simple isbuffer boolean
Avoids some unnecessary GST_IS_EVENT()
Stefan Sauer [Sun, 27 Nov 2011 19:36:31 +0000 (20:36 +0100)]
warnings: avoid set-but-unused warnings with load-save disabled
Tim-Philipp Müller [Sat, 26 Nov 2011 19:45:48 +0000 (19:45 +0000)]
uri: fix wrong G_GNUC_MALLOC
_get_protocols() points to const memory in 0.10
despite the non-const return value.
Tim-Philipp Müller [Sat, 26 Nov 2011 18:58:38 +0000 (18:58 +0000)]
libs: sprinkle some G_GNUC_MALLOC
Maybe gcc can do something clever with that, or at least
warn us if we don't save the return value somewhere.
Tim-Philipp Müller [Sat, 26 Nov 2011 18:57:44 +0000 (18:57 +0000)]
gst: sprinkle some G_GNUC_MALLOC
Maybe gcc can do something clever with that, or at least
warn us if we don't save the return value somewhere.
Tim-Philipp Müller [Wed, 16 Nov 2011 01:04:45 +0000 (01:04 +0000)]
buffer: add gst_buffer_{set,get}_qdata()
Allows people/us to attach arbitrary metadata to buffers.
https://bugzilla.gnome.org/show_bug.cgi?id=664720
API: gst_buffer_set_qdata()
API: get_buffer_get_qdata()
Sebastian Dröge [Thu, 24 Nov 2011 10:15:29 +0000 (11:15 +0100)]
pad: Remove g_warning() if pad accepted caps that are not a subset of the pad caps
This check is correct but unfortunately it's impossible to implement
in a threadsafe way because the caps could have changed in the meantime.
Fixes bug #659606.
Vincent Penquerc'h [Mon, 3 Oct 2011 11:34:20 +0000 (12:34 +0100)]
multiqueue: check filled state of queues even if another one is empty
This will avoid a case where overrun is never signalled if some
stream never produces any data, causing playbin2 to not end preroll.
https://bugzilla.gnome.org/show_bug.cgi?id=660778
Sebastian Dröge [Wed, 23 Nov 2011 12:42:56 +0000 (13:42 +0100)]
baseparse: Return template caps instead of other side's peer caps if get_sink_caps vfunc is not implemented
Using gst_pad_proxy_get_caps() breaks backwards compatibility with old
parsers because it will propagate the other side's fields like "parsed"
and "framed" and also breaks parser/converters.
Fixes bug #664221.
Tim-Philipp Müller [Sat, 12 Nov 2011 16:42:14 +0000 (16:42 +0000)]
gst-inspect: print current value as default value
Instead of printing separate 'Current' and 'Default' values
(the former obtained via g_object_get() and the latter from
the property GParamSpec), simply print the Current value as
the Default value. This is the right thing to do for almost
all elements and avoids confusion if a subclass of a base
class chooses a different default than the base class.
Tim-Philipp Müller [Sat, 12 Nov 2011 14:55:07 +0000 (14:55 +0000)]
gst, controller: replace g_list_prepend + reverse with GQueue
Stefan Sauer [Wed, 9 Nov 2011 10:05:59 +0000 (11:05 +0100)]
Android: build audio controller example
Add buildsystem hooks for building the audiocontroller example
with the NDK.
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@collabora.com>
Vincent Penquerc'h [Tue, 8 Nov 2011 18:09:28 +0000 (18:09 +0000)]
gstvalue: consider lists and ranges equal if they hold the same set
This fixes caps operations when different elements advertise some
of their caps' properties differently (eg, for audio channels, either
a range from 1 to 2, or a list of 1 and 2).
https://bugzilla.gnome.org/show_bug.cgi?id=663643
Stefan Sauer [Wed, 9 Nov 2011 10:24:26 +0000 (11:24 +0100)]
tests: add a subset test for structure
Stefan Sauer [Fri, 28 Oct 2011 11:39:58 +0000 (13:39 +0200)]
docs: also fix wrong call order for controller in manual
René Stadler [Tue, 8 Nov 2011 11:22:21 +0000 (12:22 +0100)]
tests: pad: add test to verify flushing behaviour
Seems like a trivial case, but this was actually broken in 0.11 recently.
Tim-Philipp Müller [Tue, 8 Nov 2011 00:32:36 +0000 (00:32 +0000)]
docs: fix Since: markers for API added after 0.10.35
Tim-Philipp Müller [Tue, 8 Nov 2011 00:15:49 +0000 (00:15 +0000)]
win32: update .def file for new API
API: gst_caps_is_strictly_equal()
Vincent Penquerc'h [Thu, 27 Oct 2011 11:59:57 +0000 (12:59 +0100)]
gstcaps: remove unneeded use of gint64
https://bugzilla.gnome.org/show_bug.cgi?id=662777
Vincent Penquerc'h [Thu, 27 Oct 2011 11:24:13 +0000 (12:24 +0100)]
gstvalue: quicker version of intersection when we do not need the result
https://bugzilla.gnome.org/show_bug.cgi?id=662777
Vincent Penquerc'h [Thu, 27 Oct 2011 11:02:43 +0000 (12:02 +0100)]
gststructure: simplify return statement in gst_structure_can_intersect
https://bugzilla.gnome.org/show_bug.cgi?id=662777
Vincent Penquerc'h [Thu, 27 Oct 2011 10:41:30 +0000 (11:41 +0100)]
gststructure: early out when we know a value cannot be a subset
If two values can be ordered, but are unequal, they are
necessarily distinct, thus one cannot be a subset of the other.
https://bugzilla.gnome.org/show_bug.cgi?id=662777
Vincent Penquerc'h [Thu, 27 Oct 2011 09:35:53 +0000 (10:35 +0100)]
gstvalue: quicker test for substraction emptiness
When we do not care about the actual resulting set,
but only whether it is empty of not, we can skip a fair bit
of GValue juggling.
Add a function that does so, since we cannot just pass NULL
to the existing API as it may be part of the API contract.
https://bugzilla.gnome.org/show_bug.cgi?id=662777
Vincent Penquerc'h [Thu, 27 Oct 2011 08:45:41 +0000 (09:45 +0100)]
gststructure: rejig test ordering for speed
https://bugzilla.gnome.org/show_bug.cgi?id=662777
Sjoerd Simons [Thu, 3 Nov 2011 15:36:59 +0000 (15:36 +0000)]
basetransform: Only use the cached transform on strictly equal caps
https://bugzilla.gnome.org/show_bug.cgi?id=663333
Sjoerd Simons [Thu, 3 Nov 2011 15:35:32 +0000 (15:35 +0000)]
caps: Add gst_caps_is_strictly_equal
Peteris Krisjanis [Sat, 15 Oct 2011 19:52:25 +0000 (22:52 +0300)]
introspection: add Value annotations for GST_SECOND, GST_MSECOND, GST_USECOND, GST_NSECOND constants
gobject-introspection won't parse them properly otherwise.
Still need to force the right type though (either GstClockTime or
guint64), but Type: xyz has no effect for me here, so someone with
a newer g-i needs to test this.
Some other defines are also missing, e.g. GST_CLOCK_TIME_NONE.
Tim-Philipp Müller [Fri, 4 Nov 2011 00:03:05 +0000 (00:03 +0000)]
configure: suppress unused variable warnings if gst debugging is disabled
https://bugzilla.gnome.org/show_bug.cgi?id=662952
Tim-Philipp Müller [Fri, 4 Nov 2011 00:02:07 +0000 (00:02 +0000)]
configure: fix typo around GLIB_EXTRA_CFLAGS in GST_ALL_CXXFLAGS
Tim-Philipp Müller [Thu, 3 Nov 2011 23:08:52 +0000 (23:08 +0000)]
queue: use statically allocated GQueue
Tim-Philipp Müller [Thu, 3 Nov 2011 22:58:50 +0000 (22:58 +0000)]
bin: use statically allocated GQueue
Because we can.
Tim-Philipp Müller [Thu, 3 Nov 2011 22:51:57 +0000 (22:51 +0000)]
collectpads2: use flags enum instead of guint in structure
Tim-Philipp Müller [Thu, 3 Nov 2011 08:47:20 +0000 (08:47 +0000)]
queue2: use statically allocated GQueue
Nicolas Dufresne [Tue, 25 Oct 2011 21:26:50 +0000 (17:26 -0400)]
ghostpad: Don't cache internal proxy pad target
The internal proxy pad target is simply a cache of the internal proxy pad
peer. This patch uses the well implement GstPad peer handling to obtain the
target. This fixes issues with target not being set in both direction when
two ghostpads are linked together (empty bin).
https://bugzilla.gnome.org/show_bug.cgi?id=658517
Tim-Philipp Müller [Tue, 1 Nov 2011 14:17:21 +0000 (14:17 +0000)]
adapter: simplify gst_adapter_take_list()
Use a stack-allocated GQueue to assemble our GList.
Tim-Philipp Müller [Mon, 31 Oct 2011 17:45:44 +0000 (17:45 +0000)]
configure: make GLIB_EXTRA_CFLAGS overwritable
Make 'make GLIB_EXTRA_CFLAGS=...' work.