Wim Taymans
a3f9908266
element: better type checks
...
Add GST_CLOCK typecheck for _set_clock().
Allow setting NULL indexes on element (clear the current index)
Some whitespace fixes.
2009-08-28 18:36:45 +02:00
Wim Taymans
a9095a2d73
element; whitespace fixes
2009-08-28 18:14:23 +02:00
Wim Taymans
43354dd197
defs: add gst_iterator_new_single to defs
2009-08-28 18:06:45 +02:00
Wim Taymans
b6728ca46e
adapter: whitespace fixes
2009-08-28 18:04:54 +02:00
Thijs Vermeir
0dd051eeb3
Check suggested caps for proxy alloc
...
Because we are trying to resolve a suggestion here we don't need
to check on caps for proxy_alloc but we need to check on the
suggested caps instead.
2009-08-28 18:04:50 +02:00
Wim Taymans
eaf7582b8f
queue: whitespace fixes
2009-08-28 17:49:11 +02:00
Wim Taymans
e54e5eb9bb
systemclock: use preformance counters on windows
...
Based on clock implementation by Håvard Graff <havard.graff@tandberg.com>
Try to get the time on windows using the performance counters. These have a much
higher resolution and accuracy than the regular getcurrenttime(). Be careful to
fall back to regular getcurrenttime() or posix clocks when performance counters
are not available.
2009-08-28 17:02:30 +02:00
Wim Taymans
7c054f5f53
systemclock: fix indentation
2009-08-28 16:07:16 +02:00
Wim Taymans
378b1e30e7
utils: use shift instead of division
...
We can use a shift for scaling the denominator instead of a divide since the
denom is always positive. This avoids having the compiler generate code for the
different rounding rules when scaling negative values.
2009-08-28 15:32:26 +02:00
Wim Taymans
6cf8948663
utils: make inlining explicit
2009-08-28 13:45:38 +02:00
Wim Taymans
d8911f269f
utils: optimize for x86_64 with some inline asm
...
64bit x86 has native 64x64->128 bit multiply that we can use with some inline
assembler to speed up large multiplications.
Use bsr to find the number of leading zeros more efficiently.
2009-08-28 12:43:43 +02:00
Wim Taymans
0ef7a5af52
utils: factor out the leading zero count code
2009-08-28 12:33:37 +02:00
Wim Taymans
2b8d7a54cc
utils: pass correction factor around
...
Pass the correction factor around to get rid of the enum, some code
and some branches.
2009-08-28 12:30:41 +02:00
Wim Taymans
75e8e9eb42
utils: whitespace fixes
2009-08-28 12:21:28 +02:00
Wim Taymans
2b66b29355
utils: move common correction code in a macro
2009-08-28 12:19:34 +02:00
Wim Taymans
378594e520
basesink: whitespace fixes
2009-08-27 12:26:40 +02:00
Sebastian Dröge
a1ae8a3a3e
iterator: Allow to use NULL as object for the single iterator
2009-08-26 16:51:32 +02:00
Sebastian Dröge
b2cab40745
iterator: API: Add gst_iterator_new_single()
...
This allows "iteration" over a single object of some type,
which happens often for the GstPadIterIntLinksFunction for example.
2009-08-26 16:39:19 +02:00
Wim Taymans
76d9349956
basesrc: return result of _set_caps()
2009-08-24 17:57:16 +02:00
Wim Taymans
989d9861e3
basesink: whitespace fixes
2009-08-24 17:56:32 +02:00
David Schleef
6df1127daa
It's __GNUC__, not _GNUC_
...
This appears to be an 8 year old bug.
2009-08-22 15:49:12 -07:00
Tim-Philipp Müller
78ef5ff4c7
docs: add link to cgit tarball download of gst-template in PWG
...
So people who can't use git for some reason still can get hold
of the code. See #591069 .
2009-08-21 10:02:17 +01:00
Tim-Philipp Müller
a01e5b8dca
pluginfeature: add guard to gst_plugin_feature_type_name_filter
...
So we don't just crash if there's a refcounting bug somewhere else.
2009-08-20 11:55:44 +01:00
Sebastian Dröge
9f0e832c6c
docs: Don't talk about the deprecated libgnome and GNOME-VFS
...
Instead talk about GIO and change the option parsing example to
not initialize libgnome but only GTK.
Fixes bug #592233 .
2009-08-19 16:24:39 +02:00
Sebastian Dröge
b0b971ff32
examples: Link rtpool-test to libpthread for using the POSIX threads
...
Also the other streams example can run without pthreads therefore
enable it even if pthreads are not available.
Fixes bug #592314 .
2009-08-19 15:25:41 +02:00
Sebastian Dröge
1e39f6ea0e
tools: Use iterate_internal_links instead of deprecated get_internal_links
2009-08-18 14:57:25 +02:00
Sebastian Dröge
269d3581c5
multiqueue: Use iterate_internal_links instead of deprecated get_internal_links
2009-08-18 14:57:18 +02:00
Sebastian Dröge
884467d493
gstpad: Add some DISABLE_DEPRECATED markers in the header too
...
The internal links function is deprecated since some time and
there already were GST_REMOVE_DEPRECATED markers in the source file,
now add them to the header too.
Fixes bug #592209 .
2009-08-18 14:57:08 +02:00
Sebastian Dröge
bf8af3f734
docs: Update the design docs for bin state changes according to last commit
2009-08-18 11:38:38 +02:00
Antoine Tremblay
c87d551705
gstbin: Don't try to change children's state if they're already in the state we want
...
Fixes bug #368536 .
2009-08-18 11:36:36 +02:00
Sebastian Dröge
a0ed1a44a5
ghostpad: Always get the proxypad's ghostpad via the ghostpad in the src caps change notify handler
...
Before the signal handler would get the ghostpad passed as second
argument but it could've already been unreffed and destroyed.
This would then lead to crashes and all that.
Now we get the ghostpad from the proxy pad, which we get from the
target pad as it's peer.
Fixes bug #591318 .
2009-08-18 11:33:17 +02:00
Laurent Glayal
abafed991e
filesink: Add property to allow to append to an already existing file
...
Fixes bug #591441 .
2009-08-18 08:45:08 +02:00
Sebastian Dröge
95f555379a
configure: Remove duplicated check for clock_gettime
2009-08-14 11:53:14 +02:00
Sebastian Dröge
2919e5add8
gstutils: Add special random unit test for 64 scaling functions
...
This tests 100000 random multiplications/divisions of all scaling
function variants and compares the result with the result that is
generated by GMP on the same input.
For this check for GSL and GMP during configure but only use
it for this single unit test.
Testing functions were provided by Kipp Cannon <kcannon@ligo.caltech.edu>
2009-08-14 11:12:50 +02:00
Sebastian Dröge
76338950f9
gstutils: Add new scaling functions to the docs
2009-08-13 16:32:28 +02:00
Sebastian Dröge
535952c9fa
gstutils: Add (very) minimal unit test for the new rounding scaling functions
2009-08-13 16:32:28 +02:00
Kipp Cannon
9cfd9f9374
gstutils: API: Add rounding to nearest and next integer versions of the 64 bit integer scaling functions
...
The new functions are
gst_util_uint64_scale_int_round()
gst_util_uint64_scale_int_ceil()
gst_util_uint64_scale_round()
gst_util_uint64_scale_ceil()
Fixes bug #590919 .
2009-08-13 16:32:28 +02:00
Kipp Cannon
61481c1b79
gstutils: Revert parts of last change to optimize the scaling functions again
...
Partially fixes bug #590919 .
2009-08-13 16:32:28 +02:00
Sebastian Dröge
6a84be95be
gstutils: Fix violations of strict-aliasing rules in gst_util_uint64_scale()
2009-08-13 16:32:27 +02:00
Kipp Cannon
3d359729af
gstutils: Refactor gst_util_uint64_scale()
...
This will later make it possible to provide rounding versions
of it without much code duplication.
Partially fixes bug #590919 .
2009-08-13 16:32:27 +02:00
Jonas Holmberg
824a0b5f5f
bufferlist: update doc string
2009-08-11 15:21:33 +02:00
Sebastian Dröge
276a55fd24
gstsegment: Actually start==stop==segment_start is inside the segment
...
Still the old code was wrong as it claimed that start==stop<segment_start
would be inside the segment and returned insane clipping differences.
2009-08-11 13:21:35 +02:00
Sebastian Dröge
868538945b
gstsegment: Fix unit test and add an additional test
...
The previous test assumed that start=stop=segment_start will
be inside the segment but this is wrong.
2009-08-11 13:03:03 +02:00
Sebastian Dröge
ca8a0376c5
gstsegment: Clipping should detect start=stop<segment_start as outside the segment
...
Before it returned that [start,stop] is inside the segment and that the
difference between segment_start and start needs to be clipped. If the
clipping is done on a buffer (like in baseaudiosink) this will result
in the data pointer being at a invalid memory position.
Fixes bug #589849 .
2009-08-11 12:59:13 +02:00
Sebastian Dröge
46b2a5a34e
gstbus: Unref pipeline after usage in test_custom_main_context unit test
...
This makes the core unit tests valgrind clean again.
2009-08-11 05:48:22 +02:00
Edward Hervey
adb16ca162
docs: add Edward's git plugin moving howto to moving-plugins document
2009-08-11 02:54:55 +01:00
Tim-Philipp Müller
60a962dcb8
checks: don't forget to include config.h in the GstObject unit test
2009-08-10 14:30:34 +01:00
Tim-Philipp Müller
657c68fc99
checks: try to fix GstObject unit test on OSX
...
Seems like we get SIGBUS instead of SIGSEGV here when GLib crashes
where it shouldn't crash (and we even have a unit test for that!).
2009-08-10 13:05:57 +01:00
Tim-Philipp Müller
3bf19f0a45
checks: set pipelines to NULL state in parse-launch unit test
...
Fixes timeouts in gst_task_cleanup_all().
2009-08-10 12:01:48 +01:00
Tim-Philipp Müller
a6c84b2ae6
checks: set pipeline back to NULL state in GstBus unit test
...
Fixes timeout in gst_task_cleanup_all().
2009-08-10 11:55:52 +01:00