Stefan Kost
373be6f14e
tags: don't produce duplicated entries when merging same value twice
...
Add a variant of gst_value_list_concat() that skips duplicates and use that when
merging taglists.
API: gst_value_list_merge()
2011-01-02 22:35:08 +00:00
Tim-Philipp Müller
8a7fc1d8c9
Revert "micro-optim: if (x) is cheaper than if (x > 0) for unsigned integers"
...
This reverts commit 6aa8ca37ee
.
See http://article.gmane.org/gmane.comp.video.gstreamer.devel/32282
2010-12-26 21:21:43 +00:00
Michael Smith
bdb6a9aeec
Fix GStatBuf definition for win32 when building against older glib.
...
Now matches upstream glib definition.
2010-12-22 16:36:50 -08:00
Tim-Philipp Müller
0e3410c100
miniobject: add gobject-introspection annotation
2010-12-22 22:36:05 +00:00
Sebastian Dröge
c81db31bfa
taglist: Don't leak copies of empty strings
2010-12-19 12:49:58 +01:00
Edward Hervey
3efb73c121
gst: documentation fixups and annotation
...
Reported by enabling the --warn-all option of g-ir-scanner
2010-12-17 19:14:41 +01:00
Edward Hervey
6c37015a29
gstdatetime: Fix documentation
...
second => seconds
microsecond argument was dropped
2010-12-17 15:48:34 +01:00
Stefan Kost
eb56687a6d
info: use the publicly visible address to fix the tests
...
The -Bsymbolic change causes us to get a different address when internaly
looking up the function than what application would get when the use the symbol
that they see. This made removing the default loghandler to fail, as it is set
internally and removed externaly.
2010-12-15 23:19:54 +02:00
Stefan Kost
4ef9bf1019
registry: maintain the typefind extension list order
2010-12-08 11:53:10 +02:00
Stefan Kost
4054ea491e
docs: add () to xref the function.
2010-12-08 11:53:10 +02:00
Tim-Philipp Müller
cc55b9772b
utils: remove some dead code, GST_DEBUG_COLOR is never defined
2010-12-07 19:35:55 +00:00
Tim-Philipp Müller
7b0e3356eb
utils: const-ify arguments to gst_object_default_error()
2010-12-07 19:35:24 +00:00
Tim-Philipp Müller
711f2d8abb
docs: gst_error_get_message() returns string in UTF-8, not current locale
...
We tell gettext to return everything in UTF-8 encoding.
2010-12-07 19:34:46 +00:00
Tim-Philipp Müller
3256c708be
docs: gst: more gobject introspection annotations
...
Many of these are superfluous, added for clarity.
2010-12-07 18:37:04 +00:00
Tim-Philipp Müller
0eaa25cbf5
pad: register gst_pad_get_fixed_caps_func() with the debug log system
2010-12-07 18:37:04 +00:00
Stefan Kost
6e97957b60
plugin: recommend "--gst-disable-registry-fork" as well
...
Disabling forking helps with debugging the cause of the crash in gdb.
2010-12-07 12:59:16 +02:00
Wim Taymans
8bf6b0c3fe
poll: return wakeup event in GPollFD
2010-12-06 11:20:35 +01:00
Mark Nauwelaerts
58868d4218
pad: add some debug to fast push path
...
... so we don't loose track at times it is needed the most.
2010-12-06 11:07:38 +01:00
Edward Hervey
c044024e2c
gstbin: Make element names clearer in debug statements
...
Replaces confusing messages like:
"Name name is not unique in bin bin, not adding"
by
"Name 'name' is not unique in bin 'bin', not adding"
2010-12-05 14:15:02 +01:00
David Schleef
5cdcdaee07
registry: Fix permissions if umask is broken
...
Fixes : #564056 .
2010-12-04 21:08:21 -08:00
David Schleef
66d2781877
Use g_snprintf() instead of snprintf()
2010-12-03 11:29:30 -08:00
Wim Taymans
bf979b0036
clock: init variables in _reinit()
...
Properly initialize variables in _reinit() too
2010-12-03 16:11:05 +01:00
Wim Taymans
ba7157dce6
clock: make sync clock wait lockfree
...
Make the common case lockfree.
2010-12-03 16:11:04 +01:00
Tim-Philipp Müller
f4e57cee5d
binaryregistry: use function introduced in GLib 2.22 unconditionally
2010-12-03 14:55:50 +00:00
Wim Taymans
77830123cf
poll: small cleanups
2010-12-03 15:50:38 +01:00
Wim Taymans
9bf56084cf
poll: make sure we remove the readfd messages
2010-12-03 15:50:38 +01:00
Wim Taymans
35d10af06d
poll: add method to get a GPollFD
2010-12-03 15:50:38 +01:00
Wim Taymans
22fa4470e2
poll: Refactor and make more lockfree
...
Refactor the wakeup of the poll thread.
Always make a control socket to make things easier.
Make more methods lockfree.
2010-12-03 15:50:38 +01:00
Wim Taymans
e266d4d397
poll: move lock to where it makes more sense
2010-12-03 15:50:38 +01:00
Wim Taymans
73ee14302f
poll: make timer polls lockfree
...
Make sure we don't take a mutex in the normal code path of the timer
poll.
2010-12-03 15:50:38 +01:00
Mark Nauwelaerts
efe3c70450
caps: fix doc typo
2010-12-03 13:35:38 +01:00
Stefan Kost
bd82021e86
gstobject: add stdio.h for snprint
2010-12-03 13:52:42 +02:00
Edward Hervey
fc7967a0b5
pipeline: Use an object as first argument to GST_WARNING_OBJECT
2010-12-03 12:03:43 +01:00
Edward Hervey
6aa8ca37ee
micro-optim: if (x) is cheaper than if (x > 0) for unsigned integers
2010-12-03 12:03:42 +01:00
Edward Hervey
5519b1fcb1
gstquery: Use structure property directly, avoid function variable.
...
All functions in this file can access the structure field of a query directly.
This avoids having to call gst_query_get_structure() to get it, along with being
able to remove some function variables that were used to store the result of that
function.
2010-12-03 11:33:37 +01:00
Edward Hervey
3a9396d259
gstinfo: remove useless ternary operator usage.
2010-12-03 11:33:37 +01:00
Edward Hervey
6b002234cd
gstevent: Use structure property directly, avoid function variable.
...
All functions in this file can access the structure field of an event directly.
This avoids having to call gst_query_get_structure() to get it, along with being
able to remove some function variables that were used to store the result of that
function.
2010-12-03 11:33:37 +01:00
Wim Taymans
cec2a42808
pad: add push cache to bufferlists
...
Add the push cahce for the bufferlist push code path as well.
2010-12-03 11:28:52 +01:00
Wim Taymans
59bc71c47a
pad: don't cache the peer chainfunc
...
There is no need to cache the peer chainfunction as we can just as efficiently
get to it from the peer object. Also not caching the chain function works better
because then we automatically get the new chainfunctions when they change.
2010-12-03 11:28:52 +01:00
Wim Taymans
d3630379da
pad: clear pad cache when installing probes
...
Move the method to clear the pad cache into _private.h
Clear the pad cache when installing pad probes.
2010-12-03 11:28:52 +01:00
Wim Taymans
2239038d76
pad: explicitly inline some functions
2010-12-03 11:28:52 +01:00
Wim Taymans
67d7c543b3
pad: remove unused variable
2010-12-03 11:28:52 +01:00
Wim Taymans
5e37ade932
pad: invalidate caches on flush and pad block
2010-12-03 11:28:52 +01:00
Wim Taymans
8abc14052a
pad: don't unref NULL caps
2010-12-03 11:28:52 +01:00
Wim Taymans
14542a0d46
pad: add invalidate function
...
More small optimisations, remove the unneeded valid boolean.
Add function to invalide the cache.
Invalidate the cache on unlink.
2010-12-03 11:28:52 +01:00
Wim Taymans
1c79181afd
pad: small cleanup
2010-12-03 11:28:52 +01:00
Wim Taymans
b83e66be46
pad: improve pad push caching
...
Build the cache while we push data. When we don't have a cache, we run the
slowpath and collect cacheable properties. When all conditions are met, keep the
cached data around so that we can more efficiently push data around.
2010-12-03 11:28:52 +01:00
Wim Taymans
d59b7f81b7
pad: prototype of pad push cache
...
Prototype of how we can cache the peer and caps for a pad link.
2010-12-03 11:28:52 +01:00
Wim Taymans
1e1872137d
task: avoid task lock for each iteration
...
Make the task state an atomic variable so that we can avoid taking and releasing
the task lock for each iteration.
2010-12-03 11:21:03 +01:00
Stefan Kost
898583b2a0
docs: query doc improvements
...
More xrefs. Mentioned that some queries need a running pipeline.
2010-12-03 09:50:32 +02:00