platform/upstream/gstreamer.git
14 years agochecks: Disable a fairly silly gstobject test on OS/X
Jan Schmidt [Mon, 12 Oct 2009 13:22:34 +0000 (14:22 +0100)]
checks: Disable a fairly silly gstobject test on OS/X

This test used to SIGBUS on OS/X but now SIGSEGV's instead on
Snow Leopard. It's not worth the effort to figure out which platform
should produce which error for what is fundamentally a pretty silly
test, so just disable it on OS/X

14 years agolibs/gst/check: Make writing threadsafe. Backported from libcheck trunk
Edward Hervey [Mon, 12 Oct 2009 11:50:51 +0000 (13:50 +0200)]
libs/gst/check: Make writing threadsafe. Backported from libcheck trunk

14 years agolibs/gst/check: Run gst-indent on libcheck.
Edward Hervey [Mon, 12 Oct 2009 11:49:35 +0000 (13:49 +0200)]
libs/gst/check: Run gst-indent on libcheck.

14 years agogstpluginloader: Don't wait forever on gst_poll_wait.
Edward Hervey [Mon, 12 Oct 2009 10:02:34 +0000 (12:02 +0200)]
gstpluginloader: Don't wait forever on gst_poll_wait.

This allows the macosx versions to properly error out when fds are closed.

This is only a temporary fix until the pluginloader is switched to not
use GstPoll but GIOChannels.

14 years agogstpoll: Only take into account active fds
Edward Hervey [Mon, 12 Oct 2009 10:01:59 +0000 (12:01 +0200)]
gstpoll: Only take into account active fds

This is needed so that select properly errors out on macosx (sigh)

14 years agogstpoll: Add some debugging statements
Edward Hervey [Mon, 12 Oct 2009 08:07:03 +0000 (10:07 +0200)]
gstpoll: Add some debugging statements

14 years agogstpoll: Use the error fdset when using select/pselect.
Edward Hervey [Mon, 12 Oct 2009 08:01:01 +0000 (10:01 +0200)]
gstpoll: Use the error fdset when using select/pselect.

This is needed to properly detect fds that are closed or that got
an error

14 years agogstpoll: Don't use poll on systems with broken poll
Edward Hervey [Mon, 12 Oct 2009 07:50:46 +0000 (09:50 +0200)]
gstpoll: Don't use poll on systems with broken poll

14 years agogst: Add debugging category GST_POLL for gstpoll
Edward Hervey [Mon, 12 Oct 2009 07:50:00 +0000 (09:50 +0200)]
gst: Add debugging category GST_POLL for gstpoll

14 years agoconfigure.ac: Detect broken poll()
Edward Hervey [Mon, 12 Oct 2009 07:47:59 +0000 (09:47 +0200)]
configure.ac: Detect broken poll()

14 years agobasesink: lets keep -1 for segmenst as they are guint64 and not GstClockTime
Stefan Kost [Fri, 9 Oct 2009 14:44:28 +0000 (17:44 +0300)]
basesink: lets keep -1 for segmenst as they are guint64 and not GstClockTime

14 years agobasesink: use GST_CLOCK_TIME_NONE and GST_CLOCK_TIME_IS_VALID more
Stefan Kost [Fri, 9 Oct 2009 14:11:27 +0000 (17:11 +0300)]
basesink: use GST_CLOCK_TIME_NONE and GST_CLOCK_TIME_IS_VALID more

14 years agopluginloader: Fix valgrind warnings by zeroing padding bytes.
Jan Schmidt [Thu, 8 Oct 2009 22:10:40 +0000 (23:10 +0100)]
pluginloader: Fix valgrind warnings by zeroing padding bytes.

14 years agocheck: Hopefully fix an 'may be used uninitialized' warning on OS/X
Jan Schmidt [Thu, 8 Oct 2009 16:19:38 +0000 (17:19 +0100)]
check: Hopefully fix an 'may be used uninitialized' warning on OS/X

14 years agoregistrychunks: Fix a debug format string harder to satisfy OS/X's gcc.
Jan Schmidt [Thu, 8 Oct 2009 15:21:45 +0000 (16:21 +0100)]
registrychunks: Fix a debug format string harder to satisfy OS/X's gcc.

14 years agoregistrychunks: Fix format string for debug error message.
Jan Schmidt [Thu, 8 Oct 2009 15:05:08 +0000 (16:05 +0100)]
registrychunks: Fix format string for debug error message.

14 years agopluginloader: Move stdin and stdout out of harm's way
Jan Schmidt [Thu, 8 Oct 2009 14:21:48 +0000 (15:21 +0100)]
pluginloader: Move stdin and stdout out of harm's way

In the plugin loader subprocess, move stdin and stdout to new fd's
so that plugins printing things during plugin init or (*gasp*)
possibly reading from stdin don't interfere with the data sent to
and from the parent.

14 years agoplugin docs: Add GST_PLUGIN_SCANNER env var to the inspect environment
Jan Schmidt [Thu, 8 Oct 2009 10:17:14 +0000 (11:17 +0100)]
plugin docs: Add GST_PLUGIN_SCANNER env var to the inspect environment

14 years agoAutomatic update of common submodule
Jan Schmidt [Thu, 8 Oct 2009 09:59:15 +0000 (10:59 +0100)]
Automatic update of common submodule

From 37f898b to a3e3ce4

14 years agogitignores: Ignore the bytewriter check binary
Jan Schmidt [Thu, 8 Oct 2009 09:39:28 +0000 (10:39 +0100)]
gitignores: Ignore the bytewriter check binary

14 years agoregistry: Fix error handling in the registry loader
Jan Schmidt [Thu, 8 Oct 2009 09:36:56 +0000 (10:36 +0100)]
registry: Fix error handling in the registry loader

When the plugin-scanner load fails (because the helper can't be
spawned), make sure to load the plugin that failed in-process, so
that all plugins do get loaded.

14 years agocheck: Fix test run in tests/examples/manual
Jan Schmidt [Thu, 8 Oct 2009 09:26:27 +0000 (10:26 +0100)]
check: Fix test run in tests/examples/manual

Add the GST_PLUGIN_SCANNER env var to the check environment here too
so that it doesn't fail when no installed scanner is available.

14 years agogstinfo: add back fix that shouldn't have been reverted
Tim-Philipp Müller [Thu, 8 Oct 2009 08:34:47 +0000 (09:34 +0100)]
gstinfo: add back fix that shouldn't have been reverted

14 years agoqueue: more queue optimizations
Stefan Kost [Thu, 8 Oct 2009 07:47:44 +0000 (10:47 +0300)]
queue: more queue optimizations

Split gst_queue_locked_enqueue() into variant for buffer and event to get rid of
the if() and make the code more readable (constant boolean parameters are never
nice). Removes the if (item) checks as we dereference the pointer before anyway.

Also apply the same idea of reusing the previous knowledge in
gst_queue_locked_dequeue to remove more type checks.

14 years agomultiqueue: split gst_multi_queue_item_new
Stefan Kost [Thu, 8 Oct 2009 07:51:49 +0000 (10:51 +0300)]
multiqueue: split gst_multi_queue_item_new

Split gst_multi_queue_item_new into buffer and event variant to make save an if
and make code more readable.

14 years agoplugins/gstfilesrc: Make a fast-path for length == 0 buffer creation.
Edward Hervey [Thu, 8 Oct 2009 06:55:59 +0000 (08:55 +0200)]
plugins/gstfilesrc: Make a fast-path for length == 0 buffer creation.

If the requested length is 0, we don't need to read anything from the file.

14 years agogst/check/consistencychecker: Check type of miniobject in probe
Edward Hervey [Thu, 8 Oct 2009 06:55:23 +0000 (08:55 +0200)]
gst/check/consistencychecker: Check type of miniobject in probe

14 years agogst/base/basesink: Remove dead assignment.
Edward Hervey [Thu, 8 Oct 2009 06:53:54 +0000 (08:53 +0200)]
gst/base/basesink: Remove dead assignment.

The code was previously:
* checking if ret was != OK
* .. but if it was FLOW_STEP, swith it to OK
* .. and then not using ret

Instead we just make it more compact by checking if it's OK or STEP.

14 years agogstobject: Remove dead assignment.
Edward Hervey [Thu, 8 Oct 2009 06:53:26 +0000 (08:53 +0200)]
gstobject: Remove dead assignment.

object is no longer used after that line

14 years agogstindex: Make sure writer is non-NULL.
Edward Hervey [Thu, 8 Oct 2009 06:52:18 +0000 (08:52 +0200)]
gstindex: Make sure writer is non-NULL.

Fixes the NULL dereference a few lines lower (where it gets the object type).

14 years agobenchmarks: Clean up gstbufferstress.
Edward Hervey [Tue, 29 Sep 2009 06:13:40 +0000 (08:13 +0200)]
benchmarks: Clean up gstbufferstress.

14 years agobenchmarks: Fix the complexity and mass-elements benchmarks
Jan Schmidt [Thu, 8 Oct 2009 01:42:16 +0000 (02:42 +0100)]
benchmarks: Fix the complexity and mass-elements benchmarks

14 years agochecks: Fix string leaks in the new childproxy test
Jan Schmidt [Thu, 8 Oct 2009 01:20:51 +0000 (02:20 +0100)]
checks: Fix string leaks in the new childproxy test

14 years agoplugin: Ignore an empty dependency list.
Jan Schmidt [Thu, 8 Oct 2009 01:03:08 +0000 (02:03 +0100)]
plugin: Ignore an empty dependency list.

If a plugin registers an empty dependency set, just ignore it rather
than serialising and checking an empty set.

14 years agoregistrychunks: Fix off-by-one error. Improve debug.
Jan Schmidt [Thu, 8 Oct 2009 01:01:54 +0000 (02:01 +0100)]
registrychunks: Fix off-by-one error. Improve debug.

Fix an off-by-one error in the size guard for unpack_element, and
improve various debug statements in the failure paths.

Also, swap some g_new0 to g_malloc0 for the fun of it.

14 years agofilesink: Use _wfopen on win32 to open files with non-ascii filenames correctly.
Michael Smith [Wed, 7 Oct 2009 23:02:58 +0000 (16:02 -0700)]
filesink: Use _wfopen on win32 to open files with non-ascii filenames correctly.

14 years agodocs: fix Since: tags in docs for newly-added API
Tim-Philipp Müller [Wed, 7 Oct 2009 22:31:20 +0000 (23:31 +0100)]
docs: fix Since: tags in docs for newly-added API

14 years agoinfo: revert two of the changes
Stefan Kost [Wed, 7 Oct 2009 21:08:47 +0000 (00:08 +0300)]
info: revert two of the changes

It only needed for the non constant string.

14 years agoinfo: use a "%s" format string when printing the memory dump line
Stefan Kost [Wed, 7 Oct 2009 20:36:45 +0000 (23:36 +0300)]
info: use a "%s" format string when printing the memory dump line

We know that the content is save, but the compiler does not.

14 years agoparse: don't format the string twice
Rob Clark [Wed, 7 Oct 2009 20:23:08 +0000 (23:23 +0300)]
parse: don't format the string twice

We were formatting the string once and then passing the string as a format
string to the log functions.

14 years agopad: add variants of gst_pad_get_caps() that don't copy caps. Fixes #590941
Stefan Kost [Wed, 7 Oct 2009 08:43:54 +0000 (11:43 +0300)]
pad: add variants of gst_pad_get_caps() that don't copy caps. Fixes #590941

In most places in core and baseclasses we just need the caps to do caps-
intersections. In that case ref'ed caps are enough (no need to copy).
This patch also switches the code to use the new functions.
API: gst_pad_get_caps_refed(), gst_pad_peer_get_caps_refed()

14 years agotests: add ghostpad test for setting target again after pad is linked
Stefan Kost [Sat, 26 Sep 2009 20:43:37 +0000 (23:43 +0300)]
tests: add ghostpad test for setting target again after pad is linked

14 years agotests: remove empty lines from wrong indent run
Stefan Kost [Sat, 26 Sep 2009 20:42:22 +0000 (23:42 +0300)]
tests: remove empty lines from wrong indent run

14 years agocheck: Fix compilation of the bytewriter test
Jan Schmidt [Wed, 7 Oct 2009 19:38:49 +0000 (20:38 +0100)]
check: Fix compilation of the bytewriter test

14 years agowin32: add new byte writer and reader API to .def file
Tim-Philipp Müller [Wed, 7 Oct 2009 17:07:26 +0000 (18:07 +0100)]
win32: add new byte writer and reader API to .def file

API: gst_byte_writer_*()

14 years agoelementfactory: fix spelling in comment
Michael Smith [Thu, 20 Aug 2009 21:24:19 +0000 (14:24 -0700)]
elementfactory: fix spelling in comment

14 years agomultiqueue: flush queue upon fatal flowreturn and release upstream thread
Mark Nauwelaerts [Wed, 7 Oct 2009 16:40:46 +0000 (18:40 +0200)]
multiqueue: flush queue upon fatal flowreturn and release upstream thread

14 years agodataqueue: fix API documentation typo
Mark Nauwelaerts [Tue, 22 Sep 2009 13:44:31 +0000 (15:44 +0200)]
dataqueue: fix API documentation typo

14 years agobytewriter: Add to the docs
Sebastian Dröge [Wed, 7 Oct 2009 16:37:28 +0000 (18:37 +0200)]
bytewriter: Add to the docs

14 years agobytewriter: Add unit test
Sebastian Dröge [Mon, 5 Oct 2009 09:24:35 +0000 (11:24 +0200)]
bytewriter: Add unit test

14 years agobytewriter: Add a generic byte writer
Sebastian Dröge [Sat, 3 Oct 2009 11:30:54 +0000 (13:30 +0200)]
bytewriter: Add a generic byte writer

Fixes bug #590669.

14 years agobitreader/bytereader: API: Add gst_(bit|byte)_reader_get_size()
Sebastian Dröge [Sat, 3 Oct 2009 13:57:07 +0000 (15:57 +0200)]
bitreader/bytereader: API: Add gst_(bit|byte)_reader_get_size()

... and GST_(BYTE|BIT)_READER() casts.

14 years agobytereader,bitreader: Remove FIXME 0.11 to remove non-inlined functions
Sebastian Dröge [Sat, 3 Oct 2009 10:34:54 +0000 (12:34 +0200)]
bytereader,bitreader: Remove FIXME 0.11 to remove non-inlined functions

The normal functions are always useful to have for bindings, especially
runtime-created bindings like Seed or new GObject-Introspection based
Python bindings.

14 years agocheck: Attempt to fix type-punning warning in the gstiterator test
Jan Schmidt [Wed, 7 Oct 2009 15:36:31 +0000 (16:36 +0100)]
check: Attempt to fix type-punning warning in the gstiterator test

14 years agocheck: Make sure to init the dataprotocol lib.
Jan Schmidt [Wed, 7 Oct 2009 15:00:12 +0000 (16:00 +0100)]
check: Make sure to init the dataprotocol lib.

Call the gst_dp_init() function to ensure that the debug
category is initialised, to avoid g_criticals when running with
GST_DEBUG=5

14 years agocheck: Use GST_DEBUG instead of g_message in the gdp test
Jan Schmidt [Wed, 7 Oct 2009 14:47:45 +0000 (15:47 +0100)]
check: Use GST_DEBUG instead of g_message in the gdp test

14 years agocheck: Add GST_PLUGIN_SCANNER env var to the check environment
Jan Schmidt [Wed, 7 Oct 2009 14:14:46 +0000 (15:14 +0100)]
check: Add GST_PLUGIN_SCANNER env var to the check environment

14 years agoregistry: improve plugin loader failure message for uninstalled setups
Tim-Philipp Müller [Wed, 7 Oct 2009 13:34:17 +0000 (14:34 +0100)]
registry: improve plugin loader failure message for uninstalled setups

Everyone running an uninstalled git setup is going to wonder about
this failure next time they update, so let's mention the solution
in the error message.

14 years agoconfigure: Beef up the test for __uint128_t on GCC
Jan Schmidt [Wed, 7 Oct 2009 12:59:47 +0000 (13:59 +0100)]
configure: Beef up the test for __uint128_t on GCC

GCC 3.4.3 on the SPARC buildbot crashes when actually
using __uint128_t. Beef up the configure test to detect that the
type is actually usable.

14 years agowin32: add new API to .def file
Tim-Philipp Müller [Wed, 7 Oct 2009 08:56:42 +0000 (09:56 +0100)]
win32: add new API to .def file

And add API: marker in commit message that was omitted in the original
commit:

API: gst_data_queue_new_full()

14 years agobenchmarks: add bufferstress binary to .gitignore
Tim-Philipp Müller [Wed, 7 Oct 2009 08:55:15 +0000 (09:55 +0100)]
benchmarks: add bufferstress binary to .gitignore

14 years agoconfigure: bump GLib requirement to 2.18
Tim-Philipp Müller [Wed, 7 Oct 2009 08:42:55 +0000 (09:42 +0100)]
configure: bump GLib requirement to 2.18

Bump GLib requirement as per the release planning docs.

14 years agomessage: whitespace fixes
Wim Taymans [Wed, 7 Oct 2009 08:37:39 +0000 (10:37 +0200)]
message: whitespace fixes

14 years agopad: flip the G_UNLIKELY
Stefan Kost [Wed, 7 Oct 2009 08:12:57 +0000 (11:12 +0300)]
pad: flip the G_UNLIKELY

Its likely that we have caps and unlikely (error) otherwise.

14 years agodocs: add new queue api to the docs to fix the build
Stefan Kost [Wed, 7 Oct 2009 08:04:56 +0000 (11:04 +0300)]
docs: add new queue api to the docs to fix the build

14 years agoplugins/multiqueue: Avoid instance check
Edward Hervey [Mon, 28 Sep 2009 13:25:22 +0000 (15:25 +0200)]
plugins/multiqueue: Avoid instance check

We know earlier on in the code whether we're handling an event or a buffer,
just pass that information through.

This commit and the previous commit reduce instruction fetch:
* when pushing buffer (_chain) by 10%
* when popping buffer (_loop) by 3%

14 years agoplugins/multiqueue: Cache input/output time, avoid expensive calls.
Edward Hervey [Mon, 28 Sep 2009 13:24:02 +0000 (15:24 +0200)]
plugins/multiqueue: Cache input/output time, avoid expensive calls.

* Cache the input/output time
* Only recalculate it when needed.

Avoids 50% calls to gst_segment_to_running_time

14 years agobuild: sprintf, sscanf need stdio.h
Stefan Kost [Wed, 7 Oct 2009 07:00:05 +0000 (10:00 +0300)]
build: sprintf, sscanf need stdio.h

14 years agochildproxy: initialize gvalue in _valist function. Fixes #595602
Stefan Kost [Mon, 5 Oct 2009 08:46:34 +0000 (11:46 +0300)]
childproxy: initialize gvalue in _valist function. Fixes #595602

Reflow the code to move error handling to the end of the functions. Initialize
gvalue like we do in the setter. Add a unit-test module with two simple tests
the catche this bug.

14 years agopad: don't intersect with any in proxy_pad_get_caps
Stefan Kost [Thu, 1 Oct 2009 14:39:45 +0000 (17:39 +0300)]
pad: don't intersect with any in proxy_pad_get_caps

We initialize the caps with any and if a pad has NULL caps, just skip it instead
of intersecting with any. Also add branch prediction here.

14 years agodocs: rename aggregator to adder in the docs.
Stefan Kost [Wed, 30 Sep 2009 13:41:07 +0000 (16:41 +0300)]
docs: rename aggregator to adder in the docs.

14 years agoman: fix copy and past mistake for -q option
Stefan Kost [Wed, 30 Sep 2009 06:47:23 +0000 (09:47 +0300)]
man: fix copy and past mistake for -q option

14 years agogst-uninstalled: Extend environment variables to allow using an uninstalled gstreamer...
Sebastian Dröge [Wed, 7 Oct 2009 07:54:41 +0000 (09:54 +0200)]
gst-uninstalled: Extend environment variables to allow using an uninstalled gstreamer-sharp

14 years agoplugins/multiqueue: Use new GstDataQueue constructor
Edward Hervey [Mon, 28 Sep 2009 13:19:44 +0000 (15:19 +0200)]
plugins/multiqueue: Use new GstDataQueue constructor

14 years agogstdataqueue: new constructor which takes callbacks.
Edward Hervey [Mon, 28 Sep 2009 13:18:37 +0000 (15:18 +0200)]
gstdataqueue: new constructor which takes callbacks.

This allows us to avoid going through glib's signalling system

14 years agoplugins/multiqueue: Use cached value instead of expensive object get.
Edward Hervey [Mon, 28 Sep 2009 11:19:10 +0000 (13:19 +0200)]
plugins/multiqueue: Use cached value instead of expensive object get.

The task will always exist as long as its owner (i.e. the pad) and that
owner's owner (i.e. multiqueue) exist.

Reduces the number of instruction fetches by 36%.

14 years agoplugins/queue: Use previous knowledge of data type to avoid typecheck.
Edward Hervey [Mon, 28 Sep 2009 13:41:52 +0000 (15:41 +0200)]
plugins/queue: Use previous knowledge of data type to avoid typecheck.

We know whether we have a buffer or an event, use that instead of going
trough the expensive GLib typecheck.

The overall instruction fetch reduction introduced by this commit and the
2 previous commits:
* receiving a buffer (_chain) by 20%
* popping a buffer (_loop) by 14%

Numbers acquired through callgrind passing 100000 buffers through queue.

14 years agoplugins/queue: Avoid useless segment_to_running_time() calculations.
Edward Hervey [Mon, 28 Sep 2009 13:20:06 +0000 (15:20 +0200)]
plugins/queue: Avoid useless segment_to_running_time() calculations.

* Cache src and sink time
* Use a boolean to know whether src/sink time need to be recalculated

Avoids 50% calls to gst_segment_to_running_time()

14 years agoplugins/queue: Just cast to the object parent instead of typechecking.
Edward Hervey [Mon, 28 Sep 2009 11:21:07 +0000 (13:21 +0200)]
plugins/queue: Just cast to the object parent instead of typechecking.

14 years agobenchmark: New benchmark for testing contention when creating buffers
Edward Hervey [Wed, 23 Sep 2009 14:19:32 +0000 (16:19 +0200)]
benchmark: New benchmark for testing contention when creating buffers

14 years agogst-launch: Don't activate tracing if not requested.
Edward Hervey [Wed, 23 Sep 2009 14:17:09 +0000 (16:17 +0200)]
gst-launch: Don't activate tracing if not requested.

14 years agotests: init more variables to avoid compiler warning on osx
Edward Hervey [Wed, 7 Oct 2009 06:37:05 +0000 (08:37 +0200)]
tests: init more variables to avoid compiler warning on osx

Init variable to avoid compiler warning and make the build bot happy
(the compiler most likely complains about this because it doesn't know
here that fail_unless will abort/exit in the path where it fails).

14 years agomultiqueue: Improve iterate internal links function
Sebastian Dröge [Sat, 26 Sep 2009 09:43:06 +0000 (11:43 +0200)]
multiqueue: Improve iterate internal links function

Pads have their GstSingleQueue stored as element private data
so there's no need to iterate over the list of single queues
every time. Also every pad only has a single internal link so
use a single iterator instead of a complex custom iterator.

Set the element private data of the pad to NULL when freeing the
single queue.

14 years agointrospection: Add annotations for gst_element_query_{duration,position}
Johan Bilien [Thu, 17 Sep 2009 20:30:43 +0000 (16:30 -0400)]
introspection: Add annotations for gst_element_query_{duration,position}

Fixes bug #595511.

14 years agobytereader: add inline version of gst_byte_reader_skip
Tim-Philipp Müller [Sun, 4 Oct 2009 23:11:20 +0000 (00:11 +0100)]
bytereader: add inline version of gst_byte_reader_skip

14 years agopo: update translation files for new and changed strings
Tim-Philipp Müller [Tue, 6 Oct 2009 23:47:59 +0000 (00:47 +0100)]
po: update translation files for new and changed strings

14 years agoghostpad: take locks around smaller section
Wim Taymans [Mon, 28 Sep 2009 20:43:51 +0000 (22:43 +0200)]
ghostpad: take locks around smaller section

We don't need the hold the proxy mutex locked for getting the internal pad and
for linking the new target pad when we retarget. So take the lock a little later
and release it earlier.

Fixes #596366

14 years agotests: init variable to avoid compiler warning on osx
Tim-Philipp Müller [Sun, 4 Oct 2009 18:51:40 +0000 (19:51 +0100)]
tests: init variable to avoid compiler warning on osx

Init variable to avoid compiler warning and make the build bot happy
(the compiler most likely complains about this because it doesn't know
here that fail_unless will abort/exit in the path where it fails).

14 years agogst: remove more unnecessary cast when using g_signal_*()
Tim-Philipp Müller [Sat, 3 Oct 2009 20:08:54 +0000 (21:08 +0100)]
gst: remove more unnecessary cast when using g_signal_*()

14 years agodataqueue, elements: avoid unnecessary runtime type checks
Tim-Philipp Müller [Sat, 3 Oct 2009 19:49:54 +0000 (20:49 +0100)]
dataqueue, elements: avoid unnecessary runtime type checks

14 years agodocs: Update the release script
Jan Schmidt [Mon, 5 Oct 2009 15:41:50 +0000 (16:41 +0100)]
docs: Update the release script

Remove old cruft from the release script, and change some CVS
references to equivalent git commands

14 years agopluginloader: Add a magic number and maximum size limit.
Jan Schmidt [Sun, 4 Oct 2009 13:30:34 +0000 (14:30 +0100)]
pluginloader: Add a magic number and maximum size limit.

Guard against a hostile child process that sends bogus data
due to memory corruption by adding a magic number to each packet,
and limit the maximum size of any message to 32MB

14 years agoregistry: Also check the binary registry chunk version of the child.
Jan Schmidt [Mon, 9 Feb 2009 13:33:07 +0000 (13:33 +0000)]
registry: Also check the binary registry chunk version of the child.

When trying to find a function plugin-scanner, include a check on the
version of the binary registry chunks it sends, to make sure it's
what we understand.

14 years agoregistry: Support installed/uninstalled plugin-scanner helper
Jan Schmidt [Fri, 6 Feb 2009 09:49:34 +0000 (09:49 +0000)]
registry: Support installed/uninstalled plugin-scanner helper

Add a simple version check when starting the plugin-scanner so we can
verify we're talking to one that talks the same language.
First try a plugin-scanner in the installed path, then try one via the
GST_PLUGIN_SCANNER env var if that doesn't work.
Update the uninstalled script.
Install the plugin-scanner to the libexec dir

14 years agoRemove checking for and mentions of fork where possible.
Jan Schmidt [Fri, 30 Jan 2009 14:18:13 +0000 (14:18 +0000)]
Remove checking for and mentions of fork where possible.

We no longer use fork() directly, instead using glib's spawn
functionality, so don't check for it, and don't use it in the
documentation notes.

14 years agoRe-enable and fix disabled bit of the registry test
Jan Schmidt [Fri, 30 Jan 2009 13:06:13 +0000 (13:06 +0000)]
Re-enable and fix disabled bit of the registry test

14 years agoOnly load the registry cache once per process.
Jan Schmidt [Fri, 30 Jan 2009 13:04:52 +0000 (13:04 +0000)]
Only load the registry cache once per process.

When updating the registry, we don't need to re-read the registry cache
and waste time replacing all our existing, hopefully identical, plugins
and features that we're about to re-scan anyway.

14 years agoAdd some more debug the registry.
Jan Schmidt [Thu, 29 Jan 2009 13:22:14 +0000 (13:22 +0000)]
Add some more debug the registry.

Add the full set of debug about why it's decided that a given plugin is
stale or not, and include the plugin name when finalizing it.

14 years agoAdd restarting of the plugin loader and blacklisting of broken files
Jan Schmidt [Fri, 23 Jan 2009 21:15:43 +0000 (21:15 +0000)]
Add restarting of the plugin loader and blacklisting of broken files

14 years agoPlugin loader phase 2
Jan Schmidt [Fri, 23 Jan 2009 15:47:08 +0000 (15:47 +0000)]
Plugin loader phase 2

phase 2 - make the plugin loader receive the list of plugins to load and
send back the results asynchronously, so we don't context switch back
and forth so much.