Jan Schmidt
5c46b8774b
gitignores: Ignore the bytewriter check binary
2009-10-08 10:39:28 +01:00
Jan Schmidt
f514ef0efc
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.
2009-10-08 10:36:56 +01:00
Jan Schmidt
509e1fdf0e
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.
2009-10-08 10:29:08 +01:00
Tim-Philipp Müller
8b8d8bb112
gstinfo: add back fix that shouldn't have been reverted
2009-10-08 09:36:38 +01:00
Stefan Kost
9f9353a84a
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.
2009-10-08 10:54:42 +03:00
Stefan Kost
963932b1f1
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.
2009-10-08 10:54:35 +03:00
Edward Hervey
4cfe11d42c
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.
2009-10-08 08:55:59 +02:00
Edward Hervey
9b17059deb
gst/check/consistencychecker: Check type of miniobject in probe
2009-10-08 08:55:23 +02:00
Edward Hervey
a8e03abd17
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.
2009-10-08 08:53:54 +02:00
Edward Hervey
015c5dda8f
gstobject: Remove dead assignment.
...
object is no longer used after that line
2009-10-08 08:53:26 +02:00
Edward Hervey
219c3c5236
gstindex: Make sure writer is non-NULL.
...
Fixes the NULL dereference a few lines lower (where it gets the object type).
2009-10-08 08:52:18 +02:00
Edward Hervey
fff8656af3
benchmarks: Clean up gstbufferstress.
2009-10-08 08:20:13 +02:00
Jan Schmidt
8a8408846a
benchmarks: Fix the complexity and mass-elements benchmarks
2009-10-08 02:42:16 +01:00
Jan Schmidt
077ca39def
checks: Fix string leaks in the new childproxy test
2009-10-08 02:20:51 +01:00
Jan Schmidt
69bce376b0
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.
2009-10-08 02:06:34 +01:00
Jan Schmidt
83252f42c9
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.
2009-10-08 02:06:33 +01:00
Michael Smith
0c3a8165b6
filesink: Use _wfopen on win32 to open files with non-ascii filenames correctly.
2009-10-07 16:03:30 -07:00
Tim-Philipp Müller
07d953b791
docs: fix Since: tags in docs for newly-added API
2009-10-07 23:34:44 +01:00
Stefan Kost
cb7a8e8b61
info: revert two of the changes
...
It only needed for the non constant string.
2009-10-08 00:08:47 +03:00
Stefan Kost
084bbe3921
info: use a "%s" format string when printing the memory dump line
...
We know that the content is save, but the compiler does not.
2009-10-07 23:36:45 +03:00
Rob Clark
e025e328fd
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.
2009-10-07 23:23:08 +03:00
Stefan Kost
fcc5d783df
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()
2009-10-07 22:41:30 +03:00
Stefan Kost
558f4aca59
tests: add ghostpad test for setting target again after pad is linked
2009-10-07 22:41:30 +03:00
Stefan Kost
593fc8894b
tests: remove empty lines from wrong indent run
2009-10-07 22:41:29 +03:00
Jan Schmidt
01cbe5012a
check: Fix compilation of the bytewriter test
2009-10-07 20:38:49 +01:00
Tim-Philipp Müller
ed636d6f65
win32: add new byte writer and reader API to .def file
...
API: gst_byte_writer_*()
2009-10-07 19:45:22 +01:00
Michael Smith
8fd0f64951
elementfactory: fix spelling in comment
2009-10-07 10:37:39 -07:00
Mark Nauwelaerts
e51a34985f
multiqueue: flush queue upon fatal flowreturn and release upstream thread
2009-10-07 18:51:52 +02:00
Mark Nauwelaerts
5f4daa8fd9
dataqueue: fix API documentation typo
2009-10-07 18:51:51 +02:00
Sebastian Dröge
def3f57c4f
bytewriter: Add to the docs
2009-10-07 18:40:37 +02:00
Sebastian Dröge
28c4bfc1c4
bytewriter: Add unit test
2009-10-07 18:40:37 +02:00
Sebastian Dröge
41f7a3fe09
bytewriter: Add a generic byte writer
...
Fixes bug #590669 .
2009-10-07 18:40:31 +02:00
Sebastian Dröge
f4c12be109
bitreader/bytereader: API: Add gst_(bit|byte)_reader_get_size()
...
... and GST_(BYTE|BIT)_READER() casts.
2009-10-07 17:59:51 +02:00
Sebastian Dröge
c7438c738b
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.
2009-10-07 17:59:51 +02:00
Jan Schmidt
a39ca4a9c7
check: Attempt to fix type-punning warning in the gstiterator test
2009-10-07 16:36:31 +01:00
Jan Schmidt
8b90cf1be1
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
2009-10-07 16:14:02 +01:00
Jan Schmidt
4446a6276b
check: Use GST_DEBUG instead of g_message in the gdp test
2009-10-07 16:14:02 +01:00
Jan Schmidt
4c75d07f5f
check: Add GST_PLUGIN_SCANNER env var to the check environment
2009-10-07 16:14:01 +01:00
Tim-Philipp Müller
53c9c9d975
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.
2009-10-07 14:39:03 +01:00
Jan Schmidt
31218013a3
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.
2009-10-07 13:59:47 +01:00
Tim-Philipp Müller
3977d6d884
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()
2009-10-07 09:58:44 +01:00
Tim-Philipp Müller
643c24a91b
benchmarks: add bufferstress binary to .gitignore
2009-10-07 09:58:43 +01:00
Tim-Philipp Müller
85f6ef121a
configure: bump GLib requirement to 2.18
...
Bump GLib requirement as per the release planning docs.
2009-10-07 09:58:43 +01:00
Wim Taymans
b5adcf13a0
message: whitespace fixes
2009-10-07 10:38:11 +02:00
Stefan Kost
201cbbdce0
pad: flip the G_UNLIKELY
...
Its likely that we have caps and unlikely (error) otherwise.
2009-10-07 11:12:57 +03:00
Stefan Kost
18a903e93d
docs: add new queue api to the docs to fix the build
2009-10-07 11:07:24 +03:00
Edward Hervey
61ec6a561c
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%
2009-10-07 10:07:01 +02:00
Edward Hervey
c15879f94e
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
2009-10-07 10:07:01 +02:00
Stefan Kost
cfb4aa4627
build: sprintf, sscanf need stdio.h
2009-10-07 10:59:54 +03:00
Stefan Kost
09c7d34921
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.
2009-10-07 10:59:54 +03:00