Tim-Philipp Müller
d72f559d29
tests: fix compiler warning in new miniobject test
...
gst/gstminiobject.c: In function ‘test_dup_null_mini_object’:
gst/gstminiobject.c:459:7: warning: assignment from incompatible pointer type
2011-05-04 15:30:41 +01:00
Thiago Santos
a750aac2dd
miniobject: Fix dup_mini_object function to handle NULL gvalues
...
g_value_dup_object handles gvalues that contain NULL pointers,
gst_value_dup_mini_object should do the same.
https://bugzilla.gnome.org/show_bug.cgi?id=649195
2011-05-03 08:15:51 -03:00
Philippe Normand
4e36f93924
core: store presets, registry and plugins in XDG directories.
...
Presets and plugins moved to $XDG_DATA_HOME/gstreamer-0.11/
root directory. Registry moved to $XDG_CACHE_HOME/gstreamer-0.11/.
Fixes bug #518597 .
2011-05-03 09:43:22 +02:00
Wim Taymans
6ab7e6c15d
Remove pad_alloc, this can now be done better
...
Remove pad_alloc and all references. This can now be done more efficiently and
more flexible with the ALLOCATION query and the bufferpool objects. There is no
reverse negotiation yet but that will be done with an event later.
2011-04-29 13:26:19 +02:00
Wim Taymans
070cdaab7c
Merge branch 'master' into 0.11
2011-04-25 10:30:41 +02:00
Tim-Philipp Müller
0783046100
tests: clean up properly in the bin test_link_structure_change unit test
...
Don't forget to set the pipeline back to NULL state, which makes
valgrind happy again.
2011-04-24 11:48:21 +01:00
Tim-Philipp Müller
e029aeef9e
tests: add simple pipeline-in-pipeline unit test
...
https://bugzilla.gnome.org/show_bug.cgi?id=648297
2011-04-21 12:33:10 +01:00
Sebastian Dröge
355dbdfa7e
tests: Use G_DEFINE_TYPE instead of GST_BOILERPLATE
2011-04-19 11:45:37 +02:00
Sebastian Dröge
a70df76c53
element: Add test for inheriting metadata/pad templates
2011-04-16 15:59:40 +02:00
Sebastian Dröge
f51a23a83c
Merge branch 'master' into 0.11
2011-04-16 08:59:58 +02:00
Sebastian Dröge
b44d555865
multiqueue: Don't leak pads in the named pads unit test
2011-04-14 09:07:25 +02:00
David Schleef
0b6430f6e8
parser: Allow element names to begin with digits
2011-04-13 12:24:12 -07:00
David Schleef
e9afe72710
tests: Add test for greatest common divisor
2011-04-13 10:31:03 -07:00
Tim-Philipp Müller
0e94961069
tests: fix unusued-but-assigned-variable warnings with gcc 4.6
2011-04-11 15:08:30 +01:00
Tim-Philipp Müller
8ba64e4e5d
tests: disable test_many_bins unit test for now
...
It fails on the OSX bot (both with git and the last release), and
it doesn't really test anything useful, so may just as well disable
it for now.
2011-04-11 13:04:32 +01:00
Tim-Philipp Müller
6ca7284a54
tests: allow more time for the test_many_bins pipeline to preroll
...
Hopefully makes this test work on the OSX build bot and other
not-so-powerful machines.
https://bugzilla.gnome.org/show_bug.cgi?id=646624
2011-04-11 12:04:34 +01:00
Wim Taymans
6be4dbdb5a
Merge branch 'master' into 0.11
...
Conflicts:
android/base.mk
android/controller.mk
android/dataprotocol.mk
android/elements.mk
android/gst-inspect.mk
android/gst-launch.mk
android/gst-plugin-scanner.mk
android/gst.mk
android/indexers.mk
android/net.mk
win32/common/libgstbase.def
2011-04-11 10:26:54 +02:00
Edward Hervey
ba515c186b
check: Ignore new gstmeta binary
2011-04-09 04:07:04 +02:00
Sebastian Dröge
b17537d14d
utils: Fix uninitialized variable compiler warnings
2011-04-08 09:20:28 +02:00
Tim-Philipp Müller
5c75330fea
tests: add some basic unit tests for queue2
2011-04-07 20:50:04 +01:00
Sebastian Dröge
08b98cc7e9
Merge branch 'master' into 0.11
2011-04-06 14:20:59 +02:00
Tim-Philipp Müller
6a5f8a1b2d
checks: make tests_many_bins in bin unit test a bit faster
...
Not doing expensive checks when linking elements makes things
much faster.
2011-04-06 11:41:14 +01:00
Tim-Philipp Müller
da5d6712a2
checks: add some queues to test_many_bins unit test
...
To limit the number of calls in a row per thread.
2011-04-06 11:30:18 +01:00
Sebastian Dröge
ec0de993c6
value: GstDate/GDate has a abbreviation now
2011-04-06 11:45:27 +02:00
Tim-Philipp Müller
d7ff4ee6cb
checks: add GstBin unit test that creates a lot of bins
...
Currently fails (in normal circumstances) because we create a
socket pair for each bin's bus and exhaust the number of available
file descriptors.
https://bugzilla.gnome.org/show_bug.cgi?id=646624
2011-04-05 16:30:59 +02:00
Wim Taymans
8bcaf95662
Merge branch 'master' into 0.11
2011-04-04 11:17:28 +02:00
Tim-Philipp Müller
439bbf1fde
checks: ignore new funnel unit test binary
2011-04-03 16:18:14 +01:00
Wim Taymans
fdd6433757
Merge branch 'master' into 0.11
...
Conflicts:
tests/check/gst/struct_x86_64.h
2011-03-31 17:55:22 +02:00
Wim Taymans
468ec5bc40
bufferlist: simplify bufferlists
...
We now have multiple memory blocks as part of the buffers and we can therefore
reduce the bufferlist to a simple array of buffers.
2011-03-31 17:51:02 +02:00
Sebastian Dröge
f42f2240d0
gstabi: Add some new structures for x86-64
2011-03-31 10:53:03 +02:00
Sebastian Dröge
2714587a96
libsabi: Add lots of new structures for x86-64
2011-03-31 10:46:40 +02:00
Wim Taymans
7a62d32a07
Merge branch 'master' into 0.11-fdo
...
Conflicts:
docs/plugins/gstreamer-plugins.hierarchy
gst/gstelement.c
2011-03-30 19:58:52 +02:00
Wim Taymans
ebb14d95b2
buffer: more API tweaks
...
_trim -> _resize
_create_sub -> copy_region
2011-03-30 16:47:55 +02:00
Sebastian Dröge
8db570f48c
multiqueue: Make assignment of queue IDs and pad names threadsafe
...
Also add a test for naming pads by the caller and return NULL
when requesting an already existing pad.
2011-03-30 10:52:36 +02:00
Sebastian Dröge
565efa30ea
funnel: Integrate into the build system and rename the types
2011-03-29 11:20:05 +02:00
Sebastian Dröge
e5a857e78a
funnel: Import funnel element from farsight2
2011-03-29 11:20:05 +02:00
Wim Taymans
6da19ffeb2
buffer: more buffer updates
2011-03-29 11:07:36 +02:00
Wim Taymans
a12ede3fb1
Merge branch 'master' into 0.11-fdo
...
Conflicts:
gst/gst.c
libs/gst/base/gstcollectpads.c
2011-03-28 20:11:20 +02:00
Wim Taymans
beac9c4a95
buffer: fix remaining unit tests
2011-03-28 20:08:46 +02:00
Wim Taymans
f35847a094
buffer: fix unit test
2011-03-28 20:08:46 +02:00
Wim Taymans
121ab46aa6
memory: remove memory metadata again
2011-03-28 20:08:46 +02:00
Wim Taymans
6f2af5aa87
memory: more fixes
...
Automatically make the memory of a buffer writable when the buffer is writable
and the memory is asked to mapped WRITE.
Add docs
2011-03-28 20:08:46 +02:00
Wim Taymans
38ffe30745
memory: more work on implementing buffer memory
2011-03-28 20:08:46 +02:00
Wim Taymans
1af328e785
memory: more work on porting the unit tests
2011-03-28 20:08:46 +02:00
Wim Taymans
4a9a59df08
tests: make some tests compile
2011-03-28 20:08:46 +02:00
Wim Taymans
d82c8bd2af
memory: port code to new buffer data API
2011-03-28 20:08:45 +02:00
Thiago Santos
0e1a561467
tests: caps: Tests for the new caps intersection mode
...
Adds test cases for the caps 'first' intersect mode
Adds another test for the 'zigzag' mode
Fixes #617045
2011-03-24 11:38:26 -03:00
Tim-Philipp Müller
f9558b163f
tests: add libscpp unit test to make sure g++ likes our library headers
2011-03-23 20:53:00 +00:00
Sebastian Dröge
4e16347bfa
Merge branch 'master' into 0.11
...
Conflicts:
gst/gstbufferlist.c
2011-03-17 10:50:43 +01:00
Jonas Holmberg
c4c06a2b88
bufferlist: Use a GQueue instead of a GList
...
Adding a buffer to the end of a GstBufferList is supposed to be a fast
operation, but it was not since the iterator does not advance its
nextpointer when adding buffers and GList does not have a tail pointer.
Using a GQueue to store the buffers makes it easier to add buffers to
the end of the list and this operation will now be much more efficient.
Adding an entire GList of buffers using
gst_buffer_list_iterator_add_list() will however have to iterate over
the list being added to be able to update the tail pointer in the
GQueue.
2011-03-11 14:31:14 +01:00
Wim Taymans
f0e3902a37
Merge branch 'master' into 0.11
2011-03-10 10:25:07 +01:00
Stefan Kost
7f49a9189a
test: add tests for new element_factory api.
2011-03-09 15:28:06 +02:00
Stefan Kost
e66ae6681a
tests: add a unit test for gst_caps_new_simple
...
Add a test for the crash in bug #642271 .
2011-03-08 23:01:15 +02:00
Wim Taymans
fa0d993372
meta: implement transform function
...
Replace subbuffer and copy vmethods by a more generic transform function that
can then be parametrised by transform specific data. This should allow us to
implement make-writable and more future transform functions.
2011-03-08 17:11:23 +00:00
Wim Taymans
fd0fd97200
Merge branch 'master' into 0.11
2011-03-08 17:06:30 +00:00
Stefan Kost
7c98ae2b98
tests: add test to create a factory
2011-03-08 12:29:28 +02:00
Stefan Kost
b6e2c69134
tests: start a new test suite for element factories
...
Move one test from gstelement suite.
2011-03-08 12:29:28 +02:00
Stefan Kost
eb05020f58
examples: update hello world example
...
Our helloworld example thatw e reference from the manual has been a bit
complicated to serve a first contact with gstreamer. Since we have and
promote playbin2 as a playback api use it here.
Based on work from Mathias Hasselmann <mathias.hasselmann@gmx.de>
Fixes #424143
2011-03-08 09:41:31 +02:00
Wim Taymans
230c3455ac
Merge branch 'master' into 0.11
...
Conflicts:
gst/gstregistry.h
2011-03-02 11:08:34 +01:00
Wim Taymans
f5d1dcbd9a
tests: add memory unit test
2011-02-28 09:39:44 +01:00
Wim Taymans
58060d7528
meta: separate add and get methods
...
Make separate api for getting and adding metadata. This allows us to pass extra
parameters to the init functions when creating metadata, which is needed for
specific API implementations.
Add beginnings of memory metadata.
2011-02-27 19:40:45 +01:00
Wim Taymans
6f4a733063
metadata: Rename to GstMeta
...
Rename to the shorter GstMeta
Add docs
Add api to get metadata by API
2011-02-25 13:15:25 +01:00
Wim Taymans
45645a11a1
buffermeta: fix compilation
2011-02-25 10:34:52 +01:00
Wim Taymans
023cada1f4
meta: improve test a little
2011-02-25 10:34:52 +01:00
Wim Taymans
8468dadc77
buffermeta: add beginnings of buffer metadata
...
Add first implementation of arbitrary buffer metadata. We use a simple linked
linked of slice allocated metadata chunks. Future implementations could use
something more performant.
Add get, remove, iterate methods to handle the metadata.
2011-02-25 10:34:47 +01:00
Tim-Philipp Müller
1f59906ec1
filesrc, filesink: fix URI creation regression for non-absolute locations
...
Passing e.g. location=foo would lead to warnings because g_filename_to_uri()
wants an absolute file path and returns NULL otherwise. Use brand-new
gst_filename_to_uri() instead, which will try harder to create a proper
URI for us.
Also add unit test.
2011-02-24 15:36:53 +00:00
Stefan Kost
b3f0d98964
tests: refix the tests (missing #endif)
2011-02-24 16:20:01 +02:00
Stefan Kost
b30e516d3e
Makefile.am: add new abi headers to nodist_HEADERS
2011-02-24 16:11:17 +02:00
Stefan Kost
3cb1180ff4
tests: add abi check data for ARM (libs)
2011-02-24 15:12:57 +02:00
Stefan Kost
98a50e3b82
tests: add abi check data for ARM
2011-02-24 15:03:03 +02:00
Wim Taymans
6c18c9508d
miniobject: more boxed type fixing
...
More miniobject fixing, leaks horribly somewhere..
2011-02-23 10:35:09 +01:00
Wim Taymans
0894ed2053
Merge branch 'master' into 0.11
2011-02-22 15:08:51 +01:00
Wim Taymans
238b9a57cc
Merge branch 'master' into 0.11
...
Conflicts:
configure.ac
gst/gstelement.c
gst/gstelement.h
gst/gstpad.c
gst/gstutils.c
libs/gst/base/Makefile.am
libs/gst/check/Makefile.am
libs/gst/controller/Makefile.am
libs/gst/dataprotocol/Makefile.am
libs/gst/net/Makefile.am
win32/common/libgstreamer.def
2011-02-22 14:11:59 +01:00
Thiago Santos
83597767b1
basetransform: Be smarter with pad allocs
...
Avoid doing unnecessary pad-allocs when on passthrough mode.
If multiple basetransform elements are on a pipeline, they
would do a pad-alloc for each received buffer, each element
would do this, so we would have lots of pad allocs on the
pipeline for a single buffer being pushed through it.
This patch attempts to reduce this amount by avoiding
doing pad-allocs if the element has already done it
after the last pushed buffer. So it will only be allowed
to do a new pad-alloc after it has pushed a buffer, so we get
1x1 pad-alloc and buffer ratio
https://bugzilla.gnome.org/show_bug.cgi?id=642373
2011-02-21 10:31:22 -03:00
Tim-Philipp Müller
3a744ca442
value: add (de)serialisation function for uchar
...
.. since we sadly have a plugin in -good that has a uchar property
(cmmlenc)
https://bugzilla.gnome.org/show_bug.cgi?id=642522
2011-02-17 10:55:28 +00:00
Wim Taymans
8d27621e40
check: fix a leak in the bus unit test
2011-02-16 17:56:38 +01:00
Sebastian Dröge
c1c0c86bba
file{sink,src}: Check if non-URI characters are escaped, but only for the URI not the location property
2011-02-15 22:57:28 +01:00
Sebastian Dröge
39eeab382c
file{src,sink}: Fix unit tests
...
filesink and filesrc should return exactly the same URI as passed
and must not escape path separators.
2011-02-15 22:57:28 +01:00
Wim Taymans
5db2e45d5c
check: add progress message unit test
2011-02-15 18:55:22 +01:00
Wim Taymans
56826a5ee6
event: add QoS event type
...
Add a parameter to the QoS event to specify the QoS event type.
Update docs and add unit test.
See #638891
2011-02-10 15:21:45 +01:00
Tim-Philipp Müller
b93b05653e
bus: honour any per-thread default main context set via g_main_thread_push_thread_default()
...
Makes gst_bus_add_watch(), gst_bus_add_watch_full(), gst_bus_add_signal_watch(),
and gst_bus_add_signal_watch_full() convenience functions automatically pick up
any non-default main contexts set for the current thread via
g_main_thread_push_thread_default().
2011-01-31 15:58:18 +00:00
Jan Schmidt
d38933081e
multiqueue test: Remove workaround for pad_task hangs
...
Remove code that isn't needed any longer, which sets the multiqueue
to PLAYING and back before unreffing, in order to avoid a deadlock
waiting for gstpad tasks that were never started. The problem seems
to have been fixed long ago.
2011-01-25 16:09:18 +10:00
Tim-Philipp Müller
bc066cf2ca
tests: add unit test for read-beyond-end-of-string bug
...
https://bugzilla.gnome.org/show_bug.cgi?id=639674
2011-01-24 14:24:37 +00:00
Thiago Santos
08a71b98a9
test: outputselector: Add another negotiation test
...
Adds an unit test to check that the output-selector works
when negotiating before srcpads are requested
2011-01-10 14:52:05 -03:00
Thiago Santos
e1e81ca16d
tests: selector: unref peer pad
...
Do not forget to unref peer's pad on output-selector negotiation
tests
2011-01-10 10:04:46 -03:00
Tim-Philipp Müller
c65bf460ad
tests: never disable g_assert() and cast checks for the unit tests
...
The unit tests are riddled with g_assert() and friends, make sure we
don't disable assert and cast checks for the unit tests even if
this has been specified for the rest of the code base, e.g. via
--disable-glib-asserts.
2011-01-07 00:53:11 +00:00
Thiago Santos
757dc90faa
output-selector: Add pad-negotiation-mode property
...
Adds getcaps/setcaps to output-selector and adds a property
to select which type of negotiation should be done.
The available modes are:
* none: no negotiation (current behavior), getcaps return ANY and
setcaps aren't set on any of the peers
* all: use all pads (default), getcaps returns the intersection of
peer pads and setcaps is set on all peers
* active: getcaps and setcaps are proxied to the active pad
https://bugzilla.gnome.org/show_bug.cgi?id=638381
2011-01-06 18:42:29 +00:00
Zhang Wanming
74ed5af81a
tests: fix typo
...
Signed-off-by: Zhang Wanming <Wanming.Zhang@tieto.com>
2010-12-31 12:20:53 +01:00
Tim-Philipp Müller
05471ac1a7
tests: remove output-selector test which needs elements from -base
...
Move it to -base instead.
2010-12-31 01:09:40 +00:00
Tim-Philipp Müller
a97199c6a4
checks: enable input-selector and output-selector unit tests after move
2010-12-31 01:01:02 +00:00
Stefan Kost
917278c532
output-selector-test: don't hardcode videosinks and use more colorspace conv.
...
Use autovideosink instead of hardcoded sinks. Use an additional colorspace
converter between videotestsrc and timeoverlay.
2010-12-31 00:54:05 +00:00
Benjamin Otte
8915626090
Add -Wwrite-strings
...
and fix its warnings
2010-12-31 00:54:04 +00:00
Benjamin Otte
9bb7806e01
Add -Wmissing-declarations -Wmissing-prototypes to configure flags
...
And fix all warnings
2010-12-31 00:54:04 +00:00
Michael Smith
b09bf81f15
Remove executable bits from non-executable files.
2010-12-31 00:53:50 +00:00
Stefan Kost
dea247966e
output-selector: Use BOILERPLATE macro and update test to the latest api changes.
...
Original commit message from CVS:
* plugins/elements/gstoutputselector.c:
* tests/icles/output-selector-test.c:
Use BOILERPLATE macro and update test to the latest api changes.
2010-12-31 00:53:34 +00:00
Wim Taymans
3fcc406815
plugins/elements/gstinputselector.*: Various cleanups.
...
Original commit message from CVS:
* plugins/elements/gstinputselector.c: (gst_selector_pad_class_init),
(gst_selector_pad_finalize), (gst_selector_pad_get_property),
(gst_selector_pad_event), (gst_input_selector_class_init),
(gst_input_selector_init), (gst_input_selector_set_active_pad),
(gst_input_selector_set_property),
(gst_input_selector_get_property),
(gst_input_selector_request_new_pad),
(gst_input_selector_release_pad),
(gst_input_selector_push_pending_stop),
(gst_input_selector_switch):
* plugins/elements/gstinputselector.h:
Various cleanups.
Added tags to the pads.
Select active pad based on the pad object instead of its name.
Fix refcount in set_active_pad.
Add property to get the number of pads.
* plugins/elements/gstoutputselector.c:
(gst_output_selector_class_init),
(gst_output_selector_set_property),
(gst_output_selector_get_property):
Various cleanups.
Select the active pad based on the pad object instead of its name.
Fix locking when setting the active pad.
* plugins/elements/gstselector-marshal.list:
* tests/check/elements/selector.c: (cleanup_pad),
(selector_set_active_pad), (run_input_selector_buffer_count):
Fixes for pad instead of padname for pad selection.
2010-12-31 00:53:14 +00:00
Stefan Kost
7b742d1cf4
plugins/elements/gstinputselector.*: Added "select-all" property to make it work like aggregator in 0.8.
...
Original commit message from CVS:
* plugins/elements/gstinputselector.c:
* plugins/elements/gstinputselector.h:
Added "select-all" property to make it work like aggregator in 0.8.
* plugins/elements/gstoutputselector.c:
Fix resend-latest behavoiur.
* tests/check/Makefile.am:
* tests/check/elements/.cvsignore:
* tests/check/elements/selector.c:
Add unit tests for selector.
2010-12-31 00:52:48 +00:00
Stefan Kost
dec9d95edb
gst/multifile/gstmultifilesink.c: Add a fixme comment.
...
Original commit message from CVS:
* gst/multifile/gstmultifilesink.c:
Add a fixme comment.
* plugins/elements/gstoutputselector.c:
Fix same leak as in input-selector.
* tests/icles/output-selector-test.c:
Improve the test.
2010-12-31 00:51:13 +00:00
Stefan Kost
c9f97beda7
Replace the switch plugin with the selector plugin. Add output- selector as the opposite of input-selectoo (was switc...
...
Original commit message from CVS:
* configure.ac:
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-bad-plugins-docs.sgml:
* docs/plugins/gst-plugins-bad-plugins-sections.txt:
* docs/plugins/gst-plugins-bad-plugins.args:
* docs/plugins/gst-plugins-bad-plugins.hierarchy:
* docs/plugins/gst-plugins-bad-plugins.interfaces:
* docs/plugins/gst-plugins-bad-plugins.signals:
* docs/plugins/inspect/plugin-metadata.xml:
* docs/plugins/inspect/plugin-selector.xml:
* docs/plugins/inspect/plugin-soundtouch.xml:
* docs/plugins/inspect/plugin-switch.xml:
* plugins/elements/.cvsignore:
* plugins/elements/Makefile.am:
* plugins/elements/gstinputselector.c:
* plugins/elements/gstinputselector.h:
* plugins/elements/gstoutputselector.c:
* plugins/elements/gstoutputselector.h:
* plugins/elements/gstselector-marshal.list:
* plugins/elements/gstselector.c:
* plugins/elements/selector.vcproj:
* gst/switch/.cvsignore:
* gst/switch/Makefile.am:
* gst/switch/gstswitch-marshal.list:
* gst/switch/gstswitch.c:
* gst/switch/gstswitch.h:
* gst/switch/switch.vcproj:
* tests/icles/.cvsignore:
* tests/icles/Makefile.am:
* tests/icles/output-selector-test.c:
Replace the switch plugin with the selector plugin. Add output-
selector as the opposite of input-selectoo (was switch). Add a test
for output-selector. Add docs for the elements. The vcproj needs
update. Fixes #500142 .
2010-12-31 00:51:12 +00:00
Tim-Philipp Müller
736daba993
tests: enable valve unit test
2010-12-31 00:51:12 +00:00
Tim-Philipp Müller
ad628d0bc5
tests: fix valve unit test
...
gst_buffer_pad_alloc() needs simple caps or NULL caps,
ANY caps are not allowed.
2010-12-31 00:51:12 +00:00
Olivier Crête
284b9f0e84
tests: Fix caps leak in the valve test
2010-12-31 00:51:12 +00:00
Olivier Crête
17e0b91890
valve: Add unit tests
...
Add a unit test for the valve element.
2010-12-31 00:51:12 +00:00
Wim Taymans
17bb26b529
check: add more sink unit tests
2010-12-28 16:40:28 +01:00
Wim Taymans
9b37a40e94
check: disable ABI checks
2010-12-07 18:32:53 +01:00
Wim Taymans
b2ab72b916
pad: remove get_caps_reffed variants
...
Make the _get_caps functions behave like the _get_caps_reffed variants and
remove the _reffed variants. This means that _get_caps doesn't return a writable
caps anymore and an explicit _make_writable() is needed before modifying the
caps.
2010-12-07 18:14:38 +01:00
Wim Taymans
920ef127ce
element: rework GstElementDetails
...
Clean up the GstElement structure
Replace GstElementDetails with metadata
2010-12-07 15:33:04 +01:00
Wim Taymans
a0ed044de8
plugin: remove deprecated methods
...
Remove more deprecated methods and fix unit test.
2010-12-07 15:31:27 +01:00
Wim Taymans
a1500eeeb2
check: remove deprecated tests
2010-12-07 15:21:06 +01:00
Wim Taymans
7f684e1525
check: fix object unit test
2010-12-07 15:20:12 +01:00
Stefan Kost
7106cabce3
docs: fix previous extract.pl commit
...
Make it also work in the srcdir=builddir case again.
2010-12-03 12:24:42 +02:00
Stefan Kost
caf006c03a
docs: fix example matching in extract.pl
...
When building with $srcdir != $builddir output would contain the builddir path.
Strip the path when scanning the xml for the example markers.
2010-12-03 10:18:19 +02:00
Thiago Santos
2f94ad3d6c
gstdatetime: Fix handling of timezones
...
Fix returning of timezones on systems with gdatetime
to use floats on the math expression to avoid
truncating the fractional part.
Also adds a test for covering this case.
2010-12-02 16:28:43 -03:00
Wim Taymans
a813aad0ac
basesink: rework position reporting code
...
Unify the different position reporting code paths to make it more
understandable.
Use start_time to get more accurate position reporting in paused.
Fix unit tests for more accurate reporting.
2010-12-02 19:10:46 +01:00
Wim Taymans
9076d5688f
basesink: also preroll after a flush with async=false
...
Make sure to preroll after a flush even when we are async=false.
Add unit test.
Fixes #634965
2010-12-02 19:10:45 +01:00
Wim Taymans
6c47a2e69d
check: lock src state to avoid error cases
...
Lock the state of the src element or else the pipeline might go into the error
state when we set it to PAUSED later.
2010-12-02 19:10:44 +01:00
Thiago Santos
1b27e1e792
datetime: Add _from_unix_epoch variants
...
Adds 2 variants for the gst_date_time_from_unix_epoch function,
one for UTC and another for local time.
API: gst_date_time_new_from_unix_epoch_utc
API: gst_date_time_new_from_unix_epoch_local_time
Fixes #653031
https://bugzilla.gnome.org/show_bug.cgi?id=635031
2010-11-17 09:58:32 -03:00
Jan Schmidt
6d590c65e5
tests: Add a multiqueue sparse streams test
2010-10-27 18:11:35 +02:00
Thiago Santos
e9312870e5
datetime: Use seconds as double
...
Use seconds as double to make API similar to glib's
gdatetime. Also move timezone parameter to the
first position, just like glib's.
https://bugzilla.gnome.org/show_bug.cgi?id=628408
2010-10-13 11:48:57 -03:00
Ognyan Tonchev
36b533d5b2
queue: apply sink segment on the source if queue is empty
...
Apply the sink segment on the source immediatly when it is received
and there is nothing in the queue.
Solves #482147
2010-10-11 15:56:31 +02:00
Sebastian Dröge
f17efc49c6
bitreader: Fix uninitialized variable compiler warnings
...
gcc doesn't notice that the check assertion macros will abort
further execution of the tests.
2010-10-03 23:41:26 +02:00
Sebastian Dröge
dd762eb49f
bitreader: Add inlined and unchecked versions of the important functions
...
API: gst_bit_reader_skip_unchecked
API: gst_bit_reader_skip_to_byte_unchecked
API: gst_bit_reader_get_bits_uint16_unchecked
API: gst_bit_reader_get_bits_uint32_unchecked
API: gst_bit_reader_get_bits_uint64_unchecked
API: gst_bit_reader_get_bits_uint8_unchecked
API: gst_bit_reader_peek_bits_uint16_unchecked
API: gst_bit_reader_peek_bits_uint32_unchecked
API: gst_bit_reader_peek_bits_uint64_unchecked
API: gst_bit_reader_peek_bits_uint8_unchecked
This alone makes flacparse about 3 times faster.
2010-10-03 15:32:41 +02:00
Thiago Santos
dd53349ad2
gstdatetime: Fix string serialization
...
Correctly serialize tzoffset as a gstvalue
2010-09-27 20:41:52 -03:00
Tim-Philipp Müller
7203806ffb
tests: fix 'make check' build for setups where no c++ compiler is available
...
Only try to build (pseudo-)C++ unit test if a working C++ compiler has been
found, otherwise the build will fail. (We do this to make sure our headers
are 'C++ clean').
2010-09-23 14:41:27 +01:00
Stefan Kost
2713e903fb
tests: rebuild one test using cpp
...
This aims to catch cpp issues in core. Add c++ boilerplate to configure.
2010-09-22 10:22:40 +03:00
Edward Hervey
b6aa0583b6
tests: Handle new assertion in gst_adapter_masked_scan_uint32
2010-09-19 16:10:16 +02:00
Wim Taymans
0447e72c97
bufferlist: add function to add a list of buffers
...
Add a function to add a list of buffers to the bufferlist.
2010-09-17 17:35:45 +02:00
Wim Taymans
1afaa1680f
adapter: add function to get a list of buffers
...
Add a function to retrieve a list of buffers containing the first N bytes from
the adapter. This can be done without a memcpy and should make it possible to
transfer the list to a GstBufferList later.
2010-09-17 17:35:41 +02:00
Wim Taymans
1dde3cb440
adapter: add support for 0 sized buffers
...
Add support for 0 sized buffers. This is interesting in combination with the
timestamp functions.
Fixes #629553
2010-09-17 12:40:12 +02:00
Stefan Kost
d2aa01c2de
checks: and check the right env-var (fixup last commit)
2010-09-09 21:59:29 +03:00
Stefan Kost
6a3e15373c
tests: allow running state tests for all elements
...
Now one can use GST_NO_STATE_IGNORE_ELEMENTS=1 make generic/states.check
to try elements that would normaly be skipped.
2010-09-09 21:56:28 +03:00
Edward Hervey
b792329dde
check: Avoid error: array subscript is above array bounds
...
Could have come up with something better for my 2000th commit
to GStreamer...
2010-09-06 18:37:29 +02:00
Stefan Kost
56a6094b75
tests: tune skipping checks if we have disabled subsystems
...
Skip ABI tests if some subsystems are off. Remove DISABLE_GST_DEBUG from
skipping export checks as this is safe now.
2010-09-06 14:35:26 +03:00
Philippe Normand
9ef1c47079
gstquery: new buffering_ranges API
...
Added a new query type to retrieve informations about the areas of the
media currently buffered. See bug 623121.
API: gst_query_add_buffering_range
API: gst_query_get_n_buffering_ranges
API: gst_query_parse_nth_buffering_range
2010-09-03 19:55:25 +02:00
Sebastian Dröge
0107c7e793
gstvalue: Fix memory leaks in the int64range tests
2010-09-01 11:07:38 +02:00
Philippe Normand
b2e6379be8
gstvalue: Add new GstInt64Range type
...
new GstInt64Range to store gint64 ranges.
API: GST_TYPE_INT64_RANGE
API: gst_value_set_int64_range
API: gst_value_get_int64_range_min
API: gst_value_get_int64_range_max
Fixes bug #627826 .
2010-09-01 11:07:37 +02:00
Jan Schmidt
519e08c37f
tests: Remove checks for deprecated flow check macros
...
GST_FLOW_IS_FATAL() and GST_FLOW_IS_SUCCESS() are deprecated,
so aren't available for the testsuite any more.
2010-08-28 17:51:14 +10:00
Jan Schmidt
8a20878535
tests: Add a couple of extra caps strings to test
2010-08-28 17:05:29 +10:00
Jonas Holmberg
351de88529
queue: fix segfault in test
2010-08-23 14:19:50 +02:00
Jonas Holmberg
9f87f57a82
queue: added unit test for newsegment events
2010-08-20 16:11:42 +02:00
Sebastian Dröge
41c04c7471
datetime: Fix memory leak in the unit test by unreffing GstDateTime instance after usage
2010-08-19 11:11:28 +02:00
Wim Taymans
649634a98f
tests: fix comments in test
2010-08-19 10:03:33 +02:00
Wim Taymans
e3dbe65314
check: enable queue test again
2010-08-18 15:31:09 +02:00
Jonas Holmberg
63c0e75e15
queue: fixed racy unit tests
...
Fixes #600004
2010-08-18 15:27:04 +02:00
Stefan Kost
461fd8d82d
tests: clean up eventloop in examples
...
Don't leak the bus. Don't parse messages with the method for errors (triggers
gobject warning).
2010-08-05 10:31:50 +03:00
Stefan Kost
dbe8e5d1ad
benchmark: handle errors from the pipeline
...
Catch errors and warnings on the bus. This fixes hanging pipelines in the case
of bugs elsewhere. Also print state-change messages to give more detail on the progress.
2010-08-05 10:31:50 +03:00
Stefan Kost
ced3d517eb
benchmark: cleanup last change in capsnego benchmark
...
A pad name is not a factory name.
2010-08-05 10:31:35 +03:00
Stefan Kost
42e8f0aa90
tests: add comments telling the meaning of the abbreviations
2010-08-05 09:40:02 +03:00
Tim-Philipp Müller
e50267593e
tests: add basic unit test for gst_pad_proxy_getcaps()
...
https://bugzilla.gnome.org/show_bug.cgi?id=624203
2010-08-05 01:14:18 +01:00
Thiago Santos
574e6ab423
basetransform: Try suggesting caps on bad caps pad_alloc
...
When basetransform received an unsupported caps on pad_alloc
it just returned not-negotiated. This patch makes it query
the allowed caps between his sinkpad and upstream's srcpad
to find a caps to suggest.
This happens when dinamically switching pipeline elements
and upstream pad_allocs with the previous caps that was
being used.
Fixes #614296
2010-07-26 14:49:14 -03:00
Thiago Santos
d407764110
gstvalue: Adds tests for datetime
...
Adds tests for datetime fields in gstvalue tests
Fixes #594504
2010-07-26 11:57:52 -03:00
Thiago Santos
6425bde6ec
gstdatetime: Adds GstDateTime
...
Adds GstDateTime to represent dates + time + timezone
information.
Tests included.
API: GstDateTime
API: gst_date_time_get_day
API: gst_date_time_get_month
API: gst_date_time_get_year
API: gst_date_time_get_hour
API: gst_date_time_get_microsecond
API: gst_date_time_get_minute
API: gst_date_time_get_second
API: gst_date_time_get_time_zone_offset
API: gst_date_time_new
API: gst_date_time_new_local_time
API: gst_date_time_new_from_unix_epoch
API: gst_date_time_new_now_local_time
API: gst_date_time_new_now_utc
API: gst_date_time_ref
API: gst_date_time_unref
Fixes #594504
2010-07-26 11:57:49 -03:00
Tim-Philipp Müller
8c72758ec2
plugin: add release datetime field to GstPluginDesc and set it if GST_PACKAGE_RELEASE_DATETIME is defined
...
This is a string describing a date and/or date/time in a simple subset of
the ISO-8601 format, namely either "YYYY-MM-DD" or "YYYY-MM-DDTHH:MMZ" (with
'T' the date/time separator and the 'Z' indicating UTC).
The main purpose of this field is to keep track of plugin and element versions
on an absolute timeline, so it's possible to determine which one is newer when
comparing two date time numbers. This will allow us to express 'replaces'-type
relationships betweeen plugins and element factories in future, even across
different modules and plugin merges or splits (source module version numbers
aren't particularly useful here, since they can only meaningfully be compared
within the same module). It also allows applications and libraries to reliably
check that a plugin is recent enough without making assumptions about modules
or module versions.
We use a string here to keep things simple and clear, esp. on the build system
side of things.
https://bugzilla.gnome.org/show_bug.cgi?id=623040
2010-07-23 17:00:56 +01:00
Shixin Zeng
f6b0200026
tests: make *_get_type() in tests thread safe
...
Even if it shouldn't be needed here. See #623491 .
2010-07-21 21:08:32 +01:00
Tim-Philipp Müller
c082281d28
checks: add unit test for recent taglist merge_strings_with_comma fix
...
See #624113 .
2010-07-11 19:00:54 +01:00
Tim-Philipp Müller
8836a3fd03
.gitignore: ignore new basesink unit test binary
2010-07-08 13:46:56 +01:00
Tim-Philipp Müller
e688f6fb2b
0.10.29.4 pre-release
...
Also bump libtool versions now (which I meant to do for the first
pre-release but forgot).
2010-07-06 23:52:04 +01:00
Alessandro Decina
3a553f4eda
basesink: add accessors for the enable-last-buffer property.
...
API: gst_base_sink_set_last_buffer_enabled
API: gst_base_sink_is_last_buffer_enabled
2010-07-06 16:39:18 +02:00
Alessandro Decina
f079ff3f20
basesink: add new enable-last-buffer property.
...
Add a new enable-last-buffer property. When false, it disables storing the last
received buffer in basesink::last-buffer. This can be useful in cases where
buffers need to be released asap.
API: GstBaseSink::enable-last-buffer
2010-07-06 12:38:21 +02:00
Tim-Philipp Müller
a877aefebd
checks: rewrite gsttagsetter test to use fewer g_usleep()
...
Something about that seems to interact badly with some schedulers,
so do things differently.
Fixes #623469 .
2010-07-06 11:16:17 +01:00
Alessandro Decina
e688979169
tests: remove ABI checks for GstClockEntry.
2010-07-06 10:46:42 +02:00
Alessandro Decina
819780acf7
clock: use the new gst_clock_id_wait_async_full.
...
Use the new gst_clock_id_wait_async_full in gst_clock_set_master.
Also add some tests.
2010-07-06 10:46:42 +02:00
Stefan Kost
bafa0cb491
README: update after removal of "old" dir.
...
Remove "old" and add a line about "examples".
2010-07-05 12:26:42 +03:00
Tim-Philipp Müller
d089b09075
Remove old 0.8 tests and examples from git tree
...
Doesn't really look like anything's worth keeping.
2010-07-04 17:34:30 +01:00
Tim-Philipp Müller
9db5a93ed8
check: skip silly test that segfaults when in a CK_FORK=no environment
...
See #623469 .
2010-07-03 16:40:43 +01:00
Tim-Philipp Müller
694f4d90f8
checks: make fakesrc check work in a CK_FORK=no environment
...
Reset have_eos at the beginning of each test.
See #623469 .
2010-07-03 15:13:14 +01:00
Tim-Philipp Müller
95a520be76
checks: run tests calling gst_deinit() last so things work with CK_FORK=no
...
Because gst_init() will fail once gst_deinit() has been called.
See #623469 .
2010-07-03 14:11:38 +01:00
Tim-Philipp Müller
9b1bf88d7d
checks: don't assume element factory is not loaded yet
...
It may already be loaded if check is being run with CK_FORK=no.
See #623469 .
2010-07-03 14:11:32 +01:00
Edward Hervey
70d1f1f177
gstcaps: Make sure _normalize() is applied on all structures.
...
We need to use gst_caps_get_size() in the loop counter since some
structures could be added while iterating.
Fixes #623301
2010-07-01 18:17:40 +02:00
Tim-Philipp Müller
bdcb5fec0f
examples: remove xml example build system bits and purge from tree
...
Fixes make distcheck.
2010-06-26 10:35:38 +01:00
Tim-Philipp Müller
a70a6d10ff
examples: add missing stdlib.h include in typefind example
2010-06-26 10:35:38 +01:00
Sebastian Dröge
ea82d2d72a
tests: Remove GstXML tests
2010-06-25 18:25:40 +02:00
Sebastian Dröge
5f4a965f67
gstxml: Deprecate GstXml and related functions
...
Pipeline serialisation to and from XML is horribly broken for all
but the most simple use cases, and will likely never be fixed.
Make sure everyone playing around with these tools is aware of
this, to avoid frustration. See countless bug reports in bugzilla.
Fixes bug #622685 .
2010-06-25 18:25:40 +02:00
Edward Hervey
83f6185707
benchmarks: Use gst_element_link_pads_full
...
We're testing caps negotiation, not pad linking. Brings the startup
time down 100 fold.
2010-06-25 17:51:49 +02:00
Edward Hervey
3df54c45bf
Revert "gstpad: Return pad template in get_caps if pad is not negotiable"
...
This reverts commit 7460321a60
.
crack
2010-06-15 11:54:19 +02:00
Edward Hervey
7460321a60
gstpad: Return pad template in get_caps if pad is not negotiable
...
https://bugzilla.gnome.org/show_bug.cgi?id=618644
2010-06-14 17:08:14 +02:00
Sebastian Dröge
121a0f6f7b
caps: Don't use invalid fraction range in the unit test
2010-06-14 15:45:11 +02:00
Sebastian Dröge
a55765465d
rtpool-test: Prevent NULL pointer dereference
2010-06-13 18:12:47 +02:00
Sebastian Dröge
e03b46cae4
bufferstress: Check if the number of threads and buffers makes sense
2010-06-13 17:08:37 +02:00
Sebastian Dröge
199b180439
read-metadata: Stop if setting the pipeline state back to NULL fails
2010-06-13 17:03:53 +02:00
Sebastian Dröge
59147fd111
complexity: Remove dead assignments and unused variables
2010-06-13 16:59:40 +02:00
Sebastian Dröge
4a3dde96e7
value: Add test for deserializing fourccs
2010-06-12 08:07:46 +02:00
Martin Bisson
ab0763f0e8
value: Fixed serialization for short fourccs.
...
"Y16 " and "Y8 " were not displayed properly because the space
character is not alnum. A unit test is also included.
Fixes bug #621282 .
2010-06-12 08:07:34 +02:00
Stefan Kost
94ed3c370a
capsnego: also meassure pipeline building time
2010-06-06 21:20:21 +03:00
Mark Nauwelaerts
d6a6dbd740
tests: also check for adapter buffer merging in unit test
2010-05-27 15:10:34 +02:00
Wim Taymans
88c6896fb9
gstbin: unlock _get_state() on error
...
When an error message is received on the bus, mark the bin as being in the error
state and unlock all current _get_state() calls with an error.
Fixes #505770
2010-05-25 19:17:44 +02:00
Tim-Philipp Müller
4c37bae463
checks: add multi-thread test for tagsetter
...
See #619533 .
2010-05-24 19:08:42 +01:00
Stefan Kost
4ac58c3816
tests: rename testsuite
...
Previous name was only applicable to a few of the tests.
2010-05-22 22:46:40 +03:00
Stefan Kost
5e1a7d9360
benchmark: add commandline parameters for capsnego
...
Allow to specify the graph size and offer two flavours (audio/video).
2010-05-19 14:11:56 +03:00
Stefan Kost
da46035638
benchmarks: add a benchmark for capsnegotiation
...
The test builds a tree like graph having conversion and basetransform elements.
2010-05-19 09:59:31 +03:00
Stefan Kost
f9fd1524cd
benchmarks: use gst_util_get_timestamp() instead of own implementation
2010-05-19 09:59:30 +03:00
Edward Hervey
2d094c57d8
tests: Read return value to make clang/icc happy
2010-05-06 17:32:11 +02:00
Stefan Kost
bbda261b51
tests: add more tests for controller
...
The tests verify that bug #616846 is indeed fixed.
2010-04-27 12:13:00 +03:00
Wim Taymans
67ab660b19
bin: fix refcount when removing elements during state change
...
When an element is removed from a bin because it caused a state change error,
don't unref the child twice.
Add some more debug info.
Add a unit test for this error.
Fixes #615756
2010-04-14 18:32:26 +02:00
Tim-Philipp Müller
88b4a704f3
tests: more LDFLAGS -> LDADD fixes
2010-04-14 11:50:38 +01:00
Edward Hervey
62352d6f1c
tests: gstsystemclock: don't leak the system clock
2010-04-07 09:31:39 +02:00
Edward Hervey
2183504355
tests: Don't forget to unref the newsegment event
2010-04-01 13:19:06 +02:00
Stefan Kost
bfe5b681cc
tests: add test for updating playback rate
...
Tests if a seek with both positions being GST_SEEK_TYPE_NONE is handled.
2010-03-31 22:07:57 +03:00
Tim-Philipp Müller
890042bc92
build: build examples subdirectories in parallel if requested
2010-03-30 12:35:05 +01:00
Benjamin Otte
d11b1f19df
Fix tests after set_element_details() deprecation
2010-03-24 15:16:02 +01:00