Commit graph

806 commits

Author SHA1 Message Date
Wim Taymans
e904c529e3 fix for _negotiated_caps() change 2011-08-15 12:18:15 +02:00
Thiago Santos
436c533624 tests: tag: exif: Add tests for 'non-trivial' chars
Adds two new cases to check that characters are properly
converted to ascii when writen to exif and parsed correctly
back to utf8 when read.
2011-08-10 17:46:01 -03:00
Tim-Philipp Müller
54e143c5e7 tag: add unit test for new license API
https://bugzilla.gnome.org/show_bug.cgi?id=646868
2011-08-10 10:34:22 +01:00
Tim-Philipp Müller
789e325678 tests: update for GstXOverlay => GstVideoOverlay 2011-08-08 14:12:15 +01:00
Tim-Philipp Müller
c39ad574aa video: make GST_VIDEO_FORMATS_ALL define more readable
We don't need all those quotes, strings will be parsed as strings
regardless, and g-i doesn't seem to like all those escaped quotes.
2011-07-28 13:39:14 +01:00
Tim-Philipp Müller
bfd083175b tests: update for query API changes 2011-07-27 01:18:19 +01:00
Stefan Sauer
7ca9c4ec40 basetime: fix failing test
Always use audiotestsrc as it seems to have been the intention according to the
comment header. The test does not work with live-audiosources.
2011-07-26 14:15:18 +02:00
Stefan Kost
4019e919f6 tests: rename the test suite to match the binary
This unbreaks determining the name for make elements/playbin2-compressed.check
from the test output.
2011-07-26 12:37:11 +02:00
Stefan Sauer
ed1f02e2a1 test: print actual timestamp on failure 2011-07-23 14:04:14 +02:00
Tim-Philipp Müller
69dcacf148 tests: add decodebin2 test for parser autoplugging
Make sure decodebin2 doesn't try to plug the same parser twice
in a row.
2011-07-15 16:47:44 +01:00
Tim-Philipp Müller
b3a39daed6 tests: add decodebin1 test for parser autoplugging
Make sure decodebin1 doesn't try to plug the same parser twice
in a row (so we can change all parsers to accept parsed input as
well without breaking applications still using the old decodebin1
element).
2011-07-15 16:41:10 +01:00
Tim-Philipp Müller
34d1d7a8d4 tests: make adder test and libgstvideo test compile, disable some tests
Don't fully work yet though
2011-07-08 16:37:33 +01:00
Tim-Philipp Müller
dd56714b14 ffmpegcolorspace -> videoconvert 2011-07-07 23:59:59 +01:00
Wim Taymans
26cc33cb62 Merge branch 'master' into 0.11
Conflicts:
	gst-libs/gst/tag/gstxmptag.c
	gst/encoding/gststreamsplitter.c
2011-07-07 11:10:39 +02:00
Tim-Philipp Müller
b1dcdb89f5 tests: update netbuffer and tag tests for gst_buffer_take_memory() API change 2011-07-06 12:54:40 +01:00
Tim-Philipp Müller
f55f7efa7e tests: update libs/pbutils test for GstMessage API changes
Can't access msg->structure directly any more.
2011-07-06 12:51:03 +01:00
Tim-Philipp Müller
06a5103511 tests: fix libs/mixer test for GstImplementsInterface removal
Not sure if we want to keep the GstMixer API in its current form
though..
2011-07-06 12:47:01 +01:00
Tim-Philipp Müller
9975883c7e tests: update theoraenc test for new pad probe API
Compiles now, but fails.
2011-07-06 12:42:36 +01:00
Tim-Philipp Müller
34a6a349a4 tests: update typefindfunctions test for latest API changes 2011-07-06 12:38:10 +01:00
Tim-Philipp Müller
56460b7399 tests: update libs/audio test for latest API changes 2011-07-06 12:36:37 +01:00
Thiago Santos
96d2120c2b tag: xmp: Remove extra chars from end of xmp packet
Windows picture viewer is unhappy with extra trailing chars at the
end of the xmppacket footer. So remove them as they aren't needed.
2011-06-29 10:18:23 -03:00
Tim-Philipp Müller
ac6c07a955 Merge remote-tracking branch 'origin/master' into 0.11 2011-06-26 21:27:28 +01:00
Tim-Philipp Müller
dd97ccc293 tests: the navigation interface isn't GstImplementsInterface-wrapped 2011-06-26 21:07:52 +01:00
Wim Taymans
3802d2365c test: port some more tests 2011-06-16 13:41:25 +02:00
Tim-Philipp Müller
a9e4949238 gnomevfs: remove GnomeVFS plugin
The gio plugin replaces it.
2011-06-15 00:52:47 +01:00
Tim-Philipp Müller
6b33226281 tests: fix up unit tests for playbin2/decodebin2 renames and updates
Even if they don't work yet.
2011-06-15 00:35:58 +01:00
Wim Taymans
0ac9bb7d99 Merge branch 'master' into 0.11
Conflicts:
	tests/examples/audio/Makefile.am
	tests/examples/v4l/Makefile.am
2011-06-10 12:14:57 +02:00
Tim-Philipp Müller
c692191c33 GST_PLUGINS_BASE_LIBS is not defined in -base. 2011-06-08 12:21:43 +01:00
Edward Hervey
4857f50aa4 check/vorbistag: Convert to new probe API 2011-06-03 19:28:33 +02:00
Edward Hervey
ca5a6a52f4 check/vorbisenc: Convert to new probe API 2011-06-03 19:28:33 +02:00
Edward Hervey
e3e4c28b39 check/oggmux: Convert to new probe API 2011-06-03 19:28:33 +02:00
Edward Hervey
e8d11f4ef7 check/playbin2: Update for caps and structure API changes 2011-06-03 19:28:32 +02:00
Edward Hervey
e367798945 check: Use new gst_event_new_segment() API 2011-06-03 19:28:32 +02:00
Wim Taymans
f9967e4aac Merge branch 'master' into 0.11
Conflicts:
	gst-libs/gst/video/video.h
	gst/playback/gstplaysinkaudioconvert.c
	gst/playback/gstplaysinkvideoconvert.c
	tests/check/libs/rtp.c
2011-06-02 12:18:13 +02:00
Edward Hervey
974b7bd4ed check: ... and don't forget to add the new arm header
Forgot it in my previous commit
2011-06-01 17:31:35 +02:00
Edward Hervey
fa298d13eb libsabi: Add structure sizes for arm 2011-06-01 17:26:25 +02:00
Sebastian Dröge
8f967e9e70 volume: Fix handling of volume>=4.0 for 8 and 16 bit integer formats
Also add a unit test for this. Previously volumes bigger than 4.0
would have resulted in overflows in the fixed point processing.

Fixes bug #649642.
2011-05-31 11:07:11 +02:00
Tim-Philipp Müller
4f6da2bcbc tests: fix some more unused-but-set-variable warnings with gcc 4.6 2011-05-29 13:32:04 +01:00
Tim-Philipp Müller
0a9600be50 Ignore new playbin2-compress test binary
And add old testchannels binary to CRUFT_FILES.
2011-05-28 12:39:06 +01:00
Sebastian Dröge
992e01eb63 audioconvert: Fix audioconvert unit test to work again 2011-05-27 12:13:32 +02:00
Wim Taymans
e614c6bd81 feature: use object name instaed of feature name 2011-05-24 18:21:06 +02:00
Wim Taymans
489eed9bb8 Merge branch 'master' into 0.11 2011-05-19 11:31:53 +02:00
Robert Swain
ad2010d379 gstvideo: Add gst_video_get_size_from_caps function
gst_video_get_size_from_caps () allows easy calculation of the raw video
buffer size from some fixed video caps.

API: gst_video_get_size_from_caps()
2011-05-18 14:13:46 +02:00
Sebastian Dröge
5348de76b1 tests: Update for caps/pad template related API changes 2011-05-17 13:06:01 +02:00
Sebastian Dröge
d0362c2b87 Merge branch 'master' into 0.11
Conflicts:
	configure.ac
	ext/alsa/gstalsasrc.c
	gst-libs/gst/audio/gstbaseaudiosink.c
	gst-libs/gst/tag/gstxmptag.c
	gst/playback/gstsubtitleoverlay.c
	gst/videorate/gstvideorate.c
	sys/xvimage/xvimagesink.c
2011-05-16 17:06:22 +02:00
Thiago Santos
f7c9f953cb tests: xmp: New tests for the Iptc4xmpExt tags 2011-05-15 13:02:39 -03:00
Sebastian Dröge
b0e608e308 playbin2: Disable some compressed stream tests that are racy without a stream-activate event 2011-05-14 11:42:33 +02:00
Sebastian Dröge
0e9203df11 playbin2: Reset buffer counter in playbin2-compressed tests every time when going to READY 2011-05-14 11:42:33 +02:00
Sebastian Dröge
22dae31c2d playbin2: Add unit test for compressed stream support in playbin2/playsink 2011-05-14 11:42:32 +02:00
Sebastian Dröge
38f05ba0d4 capsfilter-renegotiation: Fix for the removal of the bufferalloc function 2011-05-05 15:30:53 +02:00
Thiago Santos
213050e53c tests: capsfilter-renegotiation: New renegotiation use cases
Adds some new tests for renegotiation use cases that would
use the new renegotiate event
2011-05-05 15:23:14 +02:00
Philippe Normand
081202b9d3 base: presets moved from $HOME/.gstreamer-0.11 to $HOME/.local/share/gstreamer-0.11 2011-05-03 09:49:46 +02:00
Wim Taymans
dae5dc1e65 tests: make unit tests compile 2011-04-29 13:48:39 +02:00
Wim Taymans
1514cd7b50 tests: fix test 2011-04-25 11:32:27 +02:00
Wim Taymans
079c152e62 Merge branch 'master' into 0.11
Conflicts:
	gst/videoscale/gstvideoscale.c
2011-04-25 11:20:45 +02:00
Tim-Philipp Müller
0b5e203b19 tests: add unit test for basetransform/videoscale negotiation regression
Turn Rene's test pipeline into a unit test.

https://bugzilla.gnome.org/show_bug.cgi?id=648220
2011-04-21 14:11:49 +01:00
Sebastian Dröge
143c9a089e tests: Use G_DEFINE_TYPE instead of GST_BOILERPLATE 2011-04-19 14:22:46 +02:00
Sebastian Dröge
0759ce8533 Merge branch 'master' into 0.11 2011-04-18 13:23:32 +02:00
Sebastian Dröge
37b3878047 oggmux: Remove bus GSource to prevent a valgrind warning 2011-04-18 10:19:52 +02:00
Sebastian Dröge
5d38f0d398 gio: Remove the bus GSource from the main context
Prevents a valgrind warning about possibly leaked memory,
see bug #647763.
2011-04-18 09:20:30 +02:00
Sebastian Dröge
8eceb64b99 Merge branch 'master' into 0.11 2011-04-16 09:33:44 +02:00
Sebastian Dröge
352edd1dd9 Merge branch 'master' into 0.11 2011-04-16 09:12:31 +02:00
Tim-Philipp Müller
08a14d45b9 tests: list libs/struct*h files explicitly in Makefile.am
Hopefully makes the gentoo buildbot happy again.
2011-04-15 21:09:00 +01:00
Sebastian Dröge
86f679aaac encodebin: Unref encoding profiles after usage in the test 2011-04-14 13:15:08 +02:00
Sebastian Dröge
10e0b85a56 encodebin: Release pads after setting the state to NULL in the unit test
See bug #647756.
2011-04-14 12:55:00 +02:00
Thiago Santos
1b5a6395d2 tests: tag: Fix typo 2011-04-14 00:04:52 -03:00
Thiago Santos
e57473178b tag: xmp: Adds mapping for GST_TAG_CAPTURING_EXPOSURE_COMPENSATION
Adds mapping for GST_TAG_CAPTURING_EXPOSURE_COMPENSATION for xmp
library.

Includes unit tests.
2011-04-14 00:04:52 -03:00
Thiago Santos
dae1c37dfe tag: exif: Adds mapping for GST_TAG_CAPTURING_EXPOSURE_COMPENSATION
Adds mapping for GST_TAG_CAPTURING_EXPOSURE_COMPENSATION for exif
library.

Includes unit tests.
2011-04-14 00:04:52 -03:00
Tim-Philipp Müller
53ed133354 tests: dist all struct_*.h files for libs ABI test
Should fix distcheck on x86_64.
2011-04-11 14:29:35 +01:00
Wim Taymans
4007076b55 Merge branch 'master' into 0.11
Conflicts:
	ext/theora/gsttheoraenc.c
2011-04-06 16:33:56 +02:00
Stefan Kost
d3d8d5c2cc tests: add basic unit tests for discoverer 2011-04-05 18:16:25 +03:00
David Schleef
5f61df82da video: Fix YUV9 and YVU9 again 2011-04-04 16:01:20 -07:00
Tim-Philipp Müller
80952f6aa4 tests: ignore xmpwriter unit test binary 2011-04-04 23:23:37 +01:00
Wim Taymans
0f3fdf18e0 fix compilation after merge 2011-04-04 11:44:15 +02:00
Wim Taymans
da1c863711 Merge branch 'master' into 0.11
Conflicts:
	gst-libs/gst/tag/gstvorbistag.c
2011-04-04 11:31:33 +02:00
David Schleef
629cac4cad video: Fix height calculation for YUV9/YVU9 2011-04-01 13:55:56 -07:00
Wim Taymans
bae61bae48 fixes for new API 2011-03-31 18:40:48 +02:00
Wim Taymans
d96a8c1aa7 Merge branch 'master' into 0.11 2011-03-31 17:53:12 +02:00
Wim Taymans
730b87271c bufferlist: fixes for new API 2011-03-31 17:47:43 +02:00
Edward Hervey
bb081770c8 tests: Fixes libsabi for MacOSX/32bit.
GStaticRecMutex is 60bytes on macosx/32bit (As opposed to 40).

Fixes #644996
2011-03-31 12:37:32 +02:00
Sebastian Dröge
209188b5c9 libsabi: Add structure sizes for x86-64 2011-03-31 10:39:37 +02:00
Wim Taymans
adaf08f143 Merge branch 'master' into 0.11-fdo
Conflicts:
	gst-libs/gst/tag/gstxmptag.c
2011-03-30 20:23:54 +02:00
Tim-Philipp Müller
2e220e352f tests: add typefind test for application/x-hls
To make sure we don't break detection when we add typefinding
for normal m3u8 playlists.
2011-03-30 15:47:38 +01:00
Thiago Santos
b5246da456 tagxmpwriter: Add check tests
https://bugzilla.gnome.org/show_bug.cgi?id=645167
2011-03-29 17:11:30 -03:00
Sebastian Dröge
f1f0625e97 encodebin: Requesting a pad again now gives a g_return_val_if_fail()
Before the behaviour was undefined and implemented differently by elements,
now core checks for this (and other problems) and returns NULL and an assertion.
2011-03-29 15:42:50 +02:00
Wim Taymans
e1869fa267 Merge branch 'master' into 0.11-fdo 2011-03-28 20:13:59 +02:00
Wim Taymans
536e86e28f tests: fix more checks 2011-03-28 19:23:38 +02:00
Wim Taymans
e33b73f9df tests: fix RTP and RTCP unit tests 2011-03-28 18:42:09 +02:00
Wim Taymans
5261475bba test: fic tag check 2011-03-28 18:22:50 +02:00
Wim Taymans
dcd09840d4 tests: fix patch names and g_object_unref 2011-03-28 18:17:45 +02:00
Wim Taymans
171dfbc632 tests: fix version number checks 2011-03-28 18:01:03 +02:00
Wim Taymans
afc6dbab61 tests: fix more tests
refcounts are always 1 because subbuffers don't ref the original buffer anymore,
just the memory.
2011-03-28 17:53:39 +02:00
Wim Taymans
6cb590ba16 tests: fix more unit tests 2011-03-28 17:46:52 +02:00
Wim Taymans
e6dc4c189d tests: fix some unit tests 2011-03-28 16:54:30 +02:00
Wim Taymans
076f3f6fa3 tests: fix remaining unit tests 2011-03-28 15:51:46 +02:00
Wim Taymans
40dc12da3a tests: work on porting the unit tests 2011-03-28 14:12:24 +02:00
Tim-Philipp Müller
03ea1bea4e tests: ignore new libsabi test binary 2011-03-26 12:01:05 +00:00
Thiago Santos
8f2aea0fe4 tests: video: Uncommenting test
Pushed a commented test by accident, uncommenting it.
2011-03-23 12:42:04 -03:00
Thiago Santos
2ab592bac9 tests: video: Add a test for checking rgb caps creation
This new test for checking rgb caps creation exposes a regression
2011-03-23 12:21:55 -03:00
Mart Raudsepp
83679ef8f8 check: Really fix the linking order of libs/tag
Follow-up to commit 5f5c52c, which only fixed the CFLAGS order.
Fix the linker order as well.
2011-03-16 14:33:31 +00:00
Tim-Philipp Müller
fae2e1bc2d tests: add libscpp unit test to make sure g++ likes our library headers 2011-03-12 17:51:41 +00:00
Thiago Santos
40eaac6191 tests: encodebin: Add reuse test case
Adds a test case to check if encodebin can be reused

https://bugzilla.gnome.org/show_bug.cgi?id=644416
2011-03-10 15:12:01 -03:00
Stefan Kost
fa300aee20 tests: add ABI test suite for libs 2011-02-28 10:14:16 +02:00
Sebastian Dröge
eb91fe7162 encodebin: Fix double unref in unit test 2011-02-24 21:00:34 +01:00
Tim-Philipp Müller
2835a9e45c checks: add a simple unit test for the source-setup signal 2011-02-24 17:47:15 +00:00
Sebastian Dröge
dc87e8698e encodebin: Fix memory leaks related to request pads
Request pads have to be released by the caller and must be
unreffed after releasing them.
2011-02-24 16:02:50 +01:00
Tim-Philipp Müller
01168b83cf tests: fix videoscale test by ignoring newly-added 64-bit formats
They probably fail because ffmpegcolorspace can't handle those formats.
2011-02-21 17:59:40 +00:00
Tim-Philipp Müller
33a5e3e06f appsink: add buffer fallback in case the application doesn't handle buffer lists
We shouldn't assume the application handles buffer lists, for
ease-of-use reasons and for backwards compatibility reasons.
2011-01-31 18:06:18 +00:00
Tim-Philipp Müller
fc608d4dcd tests: don't run encodebin test if vorbis or theora plugins aren't available 2011-01-26 15:43:20 +00:00
Tim-Philipp Müller
97f84c1eee encoding-target: change keyfile header to 'GStreamer Encoding Target'
which is more in line with other files such as .desktop files.
2011-01-18 10:40:29 +00:00
Tim-Philipp Müller
a266fe8d30 tests: never disable g_assert() and cast checks for the unit tests
The unit tests are riddled with g_assert() and friends, sometimes
containing functional code like set_state() calls in them even
(looking at you, pipeline/capsfilter-renegotiation). 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:43:07 +00:00
Tim-Philipp Müller
1e80f70d7a tests: ignore new rtsp test binary 2011-01-06 20:37:50 +00:00
Edward Hervey
19201c1ab0 encoding: encoding_profile_get_output_caps => _get_input_caps
Makes more sense name-wise
2011-01-05 22:02:35 +01:00
Edward Hervey
777f816ff1 encoding-target: Fixup loading/saving methods 2011-01-05 20:54:21 +01:00
Edward Hervey
3b32566dd4 encoding-target: Change target suffix to .gep
Along with a bunch of other internal cleanups
2011-01-05 20:54:21 +01:00
Edward Hervey
a65faf2f3c encoding-target: Add API for list all categories and targets
API: gst_encoding_list_available_categories
API: gst_encoding_list_all_targets
2011-01-05 20:54:21 +01:00
Edward Hervey
deea1eb83f encoding-profile: Add convenience method to find a profile
API: gst_encoding_profile_find
2011-01-05 20:54:21 +01:00
Edward Hervey
d8f5b6322f encoding-target: Implement save/load feature
Fixes #637735
2011-01-05 20:54:06 +01:00
Edward Hervey
c8fa8085ba encoding-target: Add method to get a profile by name
API: gst_encoding_target_get_profile
2011-01-05 20:18:34 +01:00
Edward Hervey
4b3e1403a1 encoding-target: Ensure target names and categories are valid 2010-12-21 16:38:40 +01:00
Edward Hervey
949595a7a3 tests: Update container-less profile checks 2010-12-21 13:23:34 +01:00
Sebastian Dröge
3e35df72b6 rtsp: Fix memory leaks in the gst_rtsp_url_decode_path_components() unit tests 2010-12-19 09:53:08 +01:00
Andy Wingo
dd699397c2 add gst_rtsp_url_decode_path_components
* gst-libs/gst/rtsp/gstrtspurl.h:
* gst-libs/gst/rtsp/gstrtspurl.c (gst_rtsp_url_decode_path_components):
  New public function, returns a strv of uri-decoded path components.

* tests/check/Makefile.am:
* tests/check/libs/rtsp.c: Add tests.
2010-12-15 17:51:36 +01:00
Edward Hervey
8a3b45aa1f gst: New encoding plugin
https://bugzilla.gnome.org/show_bug.cgi?id=627476
2010-12-15 11:54:32 +01:00
Edward Hervey
82b4f9bfef pbutils: New Profile library
https://bugzilla.gnome.org/show_bug.cgi?id=627476
2010-12-15 11:54:32 +01:00
Mark Nauwelaerts
a0e083a717 tests: audioresample: adjust unit test to relaxed discont checking 2010-12-13 13:05:24 +01:00
Stefan Kost
3dad049359 tests: remove superflous ';' and reindent 2010-12-08 12:28:32 +02:00
René Stadler
c05f45f05b tests: add AC-3, E-AC-3 typefind tests 2010-12-07 21:28:20 +02:00
Tim-Philipp Müller
a2e896df66 tests: fix video library unit test and skip non-working YUV9/YVU9 parts for now 2010-12-03 00:02:26 +00:00
Tim-Philipp Müller
0d39e2896e tests: fix invalid free and buffer list leak in rtp library unit test 2010-11-02 12:29:05 +00:00
Tim-Philipp Müller
19db1e763f tests: fix leak in tag library unit test 2010-11-02 12:03:21 +00:00
Sebastian Dröge
0750531378 videoscale: Add unit test for working reverse negotiation
See bug #633147.
2010-10-29 13:25:10 +02:00
Thiago Santos
5984ff1086 tag: Adds GST_TAG_CAPTURING_SOURCE
Adds a tag to indicate the source/device used for the capture.

Already maps it in exif and adds tests.

API: GST_TAG_CAPTURING_SOURCE

https://bugzilla.gnome.org/show_bug.cgi?id=631773
2010-10-16 00:50:11 +01:00
Thiago Santos
b49f83d738 tag: Adds GST_TAG_CAPTURING_METERING_MODE
Adds a tag to inform what mode was used by a camera to calculate
the picture capturing exposure

Also adds mapping to exif and tests

API: GST_TAG_CAPTURING_METERING_MODE

https://bugzilla.gnome.org/show_bug.cgi?id=631773
2010-10-16 00:42:09 +01:00
Thiago Santos
f67e7aacf3 tag: Adds GST_TAG_CAPTURING_SHARPNESS
Adds new tag for tagging sharpness processing used
when capturing an image. Also maps it in the exif
tags.

Tests included.

API: GST_TAG_CAPTURING_SHARPNESS

https://bugzilla.gnome.org/show_bug.cgi?id=631773
2010-10-16 00:31:07 +01:00
David Schleef
24582f3807 tests: Don't dist generated orc code 2010-10-15 13:16:13 -07:00
Thiago Santos
67eb531163 tag: Update with latest datetime from core
Updates datetime functions to latest APIs in core
2010-10-13 12:30:31 -03:00
Thiago Santos
3e99c06ad0 tests: vorbis: adds missing lib
Adds missing lib to vorbis check tests makefile
2010-10-11 18:06:18 -03:00
Thiago Santos
8818ea08bd tests: rtp: No need to unref buffer from bufferlist
Buffers obtained from buffer list iterators don't need to
be unreffed.

Test was failing due to this.
2010-10-06 16:19:49 -03:00
Wim Taymans
77c78a6a9d check: fix rtp checks
Fix the checks for the extension support in RTP.
2010-10-05 17:13:09 +02:00
Olivier Crête
96aa439867 tests: Test the manipulations of bufferlists containing RFC 5285 header extensions 2010-10-05 16:19:14 +02:00
Olivier Crête
7612c137bd tests: Add test for RTP header extension functions 2010-10-05 16:19:14 +02:00
Thiago Santos
97d49406dc More makefile Fixes
Removing some not needed lines added in the last makefile
fixes commit (previous commit).

Also adds some more makefile files to check tests
2010-09-28 09:58:15 -03:00
Tim-Philipp Müller
d236f9185f .gitignore: ignore new appsrc unit test 2010-09-24 12:19:43 +01:00
Thiago Santos
10f0319d62 tags: exif: Add mapping for _HORIZONTAL_ERROR
Maps GST_TAG_GEO_LOCATION_HORIZONTAL_ERROR to the
GPSHPositionError tag in exif.

Tests included.
2010-09-23 10:16:07 -03:00
Thiago Santos
24b523e129 appsrc: Do not override buffer caps if appsrc caps is null
Make appsrc not set caps on buffers when its own caps is NULL.

This avoids calling make_metadata_writable on all buffers and
prevents losing buffer caps in case we are not replacing it
with something meaningful.

https://bugzilla.gnome.org/show_bug.cgi?id=630353
2010-09-23 08:23:47 -03:00
Thijs Vermeir
2a868b70ec tests: use gst-check API in videotestsrc
use gst_check_drop_buffers in videotestsrc to
clear the global buffers list.
2010-09-16 15:07:15 +02:00
Thijs Vermeir
36e8018ca7 tests: Fix unit test of videotestsrc
Use UYVY for unit tests, it's exactly the same as Y422.
(which is currently disabled in videotestsrc)
2010-09-16 15:00:22 +02:00
Sebastian Dröge
7ac1938f0f video: Add a destroy notify parameter to gst_video_convert_frame_async()
Binding generators apparently need this as they can't really know
that the callback is guaranteed to be called exactly once and that
the user_data can be freed at the end of it.
2010-09-15 11:26:48 +02:00
Sebastian Dröge
1e29e528c7 video: Add unit test for gst_video_convert_frame_async() 2010-09-14 08:42:44 +02:00
Sebastian Dröge
2f781d69d2 video: Add a simple unit test for the new convert_frame API
Unfortunately this can't test the encoding because there's no
image encoder in base.
2010-09-14 08:42:44 +02:00
Thijs Vermeir
78055cc852 tests: videotestsrc change the pattern property for the tests 2010-09-10 10:43:51 +02:00
Stefan Kost
4e379a4e59 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:51:55 +03:00
Edward Hervey
5f5c52cbc5 check: Fix linking order of libs/tag 2010-09-07 16:26:56 +02:00
Edward Hervey
958cf91b85 check: Make fontconfig leak suppression more generic 2010-09-07 16:26:30 +02:00
Thiago Santos
d54ba93945 tag: exif: Adds mappings for new image ppi tags
Adds mappings for GST_TAG_IMAGE_HORIZONTAL/VERTICAL_PPI into
our exif lib

Tests included.

Fixes #626570
2010-09-07 10:07:29 -03:00
Thiago Santos
9c5f791a34 tag: exif: Adds flash tags mapping
Adds a mapping for GST_TAG_CAPTURING_FLASH_FIRED/_MODE to
the exif Flash tag.

Tests included.
2010-08-25 08:36:59 -03:00
Thiago Santos
ac361dcc3a tag: exif: More photography mappings
Adds mappings from:
GST_TAG_CAPTURING_EXPOSURE_PROGRAM -> ExposureProgram
GST_TAG_CAPTURING_EXPOSURE_MODE -> ExposureMode
GST_TAG_CAPTURING_SCENE_CAPTURE_TYPE -> SceneCaptureType
GST_TAG_CAPTURING_GAIN_ADJUSTMENT -> GainControl
GST_TAG_CAPTURING_WHITE_BALANCE -> WhiteBalance
GST_TAG_CAPTURING_CONTRAST -> Constrast
GST_TAG_CAPTURING_SATURATION -> Saturation

Also renames gst_tag_image_orientation_from_exif_value and
gst_tag_image_orientation_to_exif_value to remove the 'gst'
prefix and not including in the win32 defs.

Tests included.
2010-08-25 08:32:19 -03:00
Thiago Santos
10d680b74d tag: exif: Adds photography tags mappings
Adds the following mappings for the exif helper:
* GST_TAG_CAPTURING_DIGITAL_ZOOM_RATIO -> DigitalZoomRatio
* GST_TAG_CAPTURING_FOCAL_LENGTH -> FocalLength
* GST_TAG_CAPTURING_SHUTTER_SPEED -> ExposureTime, ShutterSpeedValue
* GST_TAG_CAPTURING_FOCAL_RATIO -> FNumber, ApertureValue
* GST_TAG_CAPTURING_ISO_SPEED -> ISOSpeed, PhotographicSensitivity

Tests included.
2010-08-24 22:24:36 -03:00
Thiago Santos
57013ae63e tag: exif: Adds mapping for GST_TAG_APPLICATION_DATA
Adds mapping for GST_TAG_APPLICATION_DATA to the exif
'maker-note' tag.
2010-08-24 22:20:48 -03:00
Sebastian Dröge
acc7d51ce5 videoscale: Add some debug output to the videoscale negotiation test 2010-08-11 18:10:45 +02:00
Thiago Santos
61e11b0fc4 xmp: exif: Adds GST_TAG_APPLICATION_NAME mappings
adds xmp and exif helper library mappings for GST_TAG_APPLICATION_NAME
tag.
2010-08-09 18:04:08 -03:00
Thiago Santos
f600b510fe tests: tag: Test to try to serialize multiple exif tags
Adds a new test for exif data that tries serializing data
from multiple ifd tables and check if it works.
2010-08-09 18:03:39 -03:00
Thiago Santos
2760c96dfc tag: xmp: Make bag tags deserialization work correctly
If we find a bag of tags of type string in the xmp packet, we
should concat them, this is not the ideal approach, but at
least works for now as we don't know what type of tag it
is (simple, structure, seq, alt or bag)
2010-08-04 09:56:39 -03:00
Thiago Santos
3dbf96faa3 oggmux: Fix test build when theora and vorbis aren't available
Ifdef properly to avoid build failures
2010-08-02 11:11:58 -03:00
Tim-Philipp Müller
5a0c2517ee pbutils: add compile time and runtime version checks for gst-plugins-base
So people can check what version of the gst-plugins-base libs they're
building against or linked against.

API: GST_PLUGINS_BASE_VERSION_MAJOR
API: GST_PLUGINS_BASE_VERSION_MINOR
API: GST_PLUGINS_BASE_VERSION_MICRO
API: GST_PLUGINS_BASE_VERSION_NANO
API: GST_CHECK_PLUGINS_BASE_VERSION
API: gst_plugins_base_version()
API: gst_plugins_base_version_string()
2010-07-26 17:25:15 +02:00
Thiago Santos
93f97277da tag: exif: Map GST_TAG_DATE_TIME
Adds mapping to the exif helper library for GST_TAG_DATE_TIME.
Tests included.

https://bugzilla.gnome.org/show_bug.cgi?id=594504
2010-07-26 12:00:31 -03:00
Thiago Santos
5e51a77df4 tag: xmp: Maps GST_TAG_DATE_TIME
Adds mapping for GST_TAG_DATE_TIME.
Tests included.

https://bugzilla.gnome.org/show_bug.cgi?id=594504
2010-07-26 12:00:30 -03:00
Tim-Philipp Müller
01ace4a124 tests: add unit test for mpeg-ts typefinding bug
See #623663.
2010-07-18 11:38:19 +01:00
Tim-Philipp Müller
14649643df checks: simplify GstBus usage in videoscale unit test
There's no need to run a main loop, add a bus watch and deal with
helper structs here just to wait for an EOS message.
2010-06-26 12:03:54 +01:00
Tim-Philipp Müller
3563c7c7a5 checks: speed up videoscale unit test a little
Use new gst_element_link_pads_full() function to link elements,
and disable all checks when linking (don't try this at home).

Down to 18s from 3m20s. Scary.
2010-06-26 11:45:34 +01:00
Tim-Philipp Müller
713042e7ce tests: add test that runs all typefinders over random data 2010-06-24 15:14:06 +01:00
Tim-Philipp Müller
fe4d0e7da6 tests: add plugin loading whitelist to test environment
Only want to load core/-base plugins here.
2010-06-24 13:43:33 +01:00
Thiago Santos
c774cdcff0 tag: xmp: Adds GST_TAG_IMAGE_ORIENTATION mapping
Adds GST_TAG_IMAGE_ORIENTATION mapping to xmp helper lib.
Tests included.
2010-06-23 12:03:47 -03:00
Thiago Santos
e327be5a96 tag: exif: Adds mapping for GST_TAG_IMAGE_ORIENTATION
Adds GST_TAG_IMAGE_ORIENTATION to the exif helper lib mapped tags.
Tests included.
2010-06-23 12:03:47 -03:00
Stefan Kost
aef6123172 tests: use our own macros for the tests main function 2010-06-21 09:53:23 +03:00
Edward Hervey
d17d8e5319 Revert "audioresample: set pads as negotiable"
This reverts commit 5f74f3a82e.
2010-06-15 13:09:37 +02:00
Edward Hervey
be72e1506f Revert "audioconvert: set pads negotiable"
This reverts commit bbd7dee8f6.
2010-06-15 13:09:29 +02:00
Wim Taymans
bbd7dee8f6 audioconvert: set pads negotiable 2010-06-14 18:10:52 +02:00
Wim Taymans
5f74f3a82e audioresample: set pads as negotiable 2010-06-14 17:48:58 +02:00
Sebastian Dröge
39c39ff5ab videoscale: And only expect a single buffer in the unit test 2010-06-14 16:07:21 +02:00
Sebastian Dröge
b62f435fd0 videoscale: Only convert one buffer instead of five
Should make the unit test a lot faster.
2010-06-14 16:02:13 +02:00
Sebastian Dröge
8ae112058c videoscale: Add ffmpegcolorspace after videotestsrc for the unit test 2010-06-13 22:17:18 +02:00
Sebastian Dröge
3e708d8a9b tests: Fix linking of the tags test 2010-06-13 18:27:19 +02:00
Thiago Santos
491d025530 tag: exif: Adds new geo-location tag mappings
Adds mappings for:
GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION
GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION
GST_TAG_GEO_LOCATION_MOVEMENT_SPEED
GST_TAG_GEO_LOCATION_ELEVATION

Does some refactoring in the code to reduce number of parameters
passed to functions

Tests included.
2010-06-09 16:26:43 -03:00
Thiago Santos
4418dc9cdf tests: tag: Adds unit tests for exif helper lib
Adds some simple unit tests for exif helper lib functions

Fixes #614872
2010-06-09 16:26:42 -03:00
Sebastian Dröge
60f992707f video: Fix unit test, the Y800 checks were not used before and were not working 2010-06-08 11:02:08 +02:00
David Schleef
84832877a6 tests: Add orc tests 2010-06-07 23:58:54 -07:00
Tim-Philipp Müller
3c39d99847 tests: fix memory leak in unit test 2010-06-05 18:08:02 +01:00
Tim-Philipp Müller
2c989ef3a7 tests: add small unit test for AC3 vs. JPEG typefinding issue 2010-06-05 17:24:45 +01:00
Sebastian Dröge
303566654e videoscale: Add a unit test for checking if the negotiation works as expected 2010-05-13 11:16:02 +02:00
Thiago Santos
e879fc9ca3 tag: xmp: Adds new geo-location mappings
Adds GST_TAG_GEO_LOCATION_MOVEMENT_SPEED,
GST_TAG_GEO_LOCATION_MOVEMENT_DIRECTION and
GST_TAG_GEO_LOCATION_CAPTURE_DIRECTION to xmp
mappings.

Tests included.
2010-05-03 14:14:25 -03:00
Thiago Santos
a20aa39fa3 tag: xmp: Adds xmp mappings for device tags
Adds xmp mappings for GST_TAG_DEVICE_MANUFACTURER and
GST_TAG_DEVICE_MODEL. Also adds tests for it.
2010-05-03 14:14:03 -03:00
Thiago Santos
390b719e96 tests: tag: Refactor a bit
Refactor xmp tags unit tests and remove an useless assertion.

This will make easier to add unit tests to serialize/deserialize
taglists.
2010-04-04 22:34:19 -03:00
Edward Hervey
dcfeb6efbc tests/basetime: Don't run test with osxaudiosrc
libcheck runs the actual tests in a forked process and that makes the guys
in Cupertino really sad.
2010-04-01 19:13:22 +02:00
Edward Hervey
e0c7452edf tests: Unref the bus once we're done with it 2010-04-01 18:51:17 +02:00
Thiago Santos
8fda870b29 tag: xmp: Adds _USER_RATING mapping for xmp
Adds a new mapping for _USER_RATING on xmp helper lib
and also adds tests for it
2010-03-24 15:34:52 -03:00
Thiago Santos
007bf4fe7c tag: xmp: Add Elevation tag mapping
Adds a mapping to the _ELEVATION tag, this is a different
mapping as it has to be mapped into exif:GPSAltitude and
exif:GPSAltitudeRef at the same time. So we needed to refactor
a little more to be able to deserialize it properly.

Now, when parsing a xmp buffer into a taglist all tags are
added to a list before being parsed so that when one of the
altitude tags are found the deserialization function can search
for its complementary tag to do the correct parsing

Fixes #613690
2010-03-24 15:34:40 -03:00
Thiago Santos
7ebbfbd3a5 tag: xmp: Adds mappings for LATITUDE and LONGITUDE
Adds the mappings for those tags and tests
for tags serialization.

Fixes #613690
2010-03-24 15:33:16 -03:00
Tim-Philipp Müller
73b24098a2 .gitignore: ignore new unit test binary 2010-03-19 00:55:46 +00:00
Thiago Santos
433f18db8e tests: capsfilter-renegotiation: Adds a new unit test
Adds a new test for checking that capsfilter 'caps' property
changes cause caps renegotiation on the pipeline.
2010-03-17 16:33:04 -03:00
Benjamin Otte
3bd4aa26ff Add -Wwrite-strings to configure
Fixes for the code included
2010-03-16 17:41:51 +01:00
Benjamin Otte
5e21fa5e0e gst_element_class_set_details => gst_element_class_set_details_simple
Also change my email from the old university one to the current one.
2010-03-16 17:41:50 +01:00
Tim-Philipp Müller
444762a877 tests: fix videorate test
Fix up videorate test for latest videotestsrc changes: just check for
the important bits in the negotiated caps, not for exact equality with
our filter caps. Also don't leak the videorate element in the test.
2010-03-16 01:08:48 +00:00
Stefan Kost
412e5f5871 tests: update videorate test for videotestsrc changes
Add color-matrix to the caps we are comparing. Add logging og the caps in the
test.
2010-03-15 11:43:23 +02:00
Benjamin Otte
43b1683421 Add -Wmissing-declarations -Wmissing-prototypes to warning flags
Includes all the fixes necessary to make stuff compile again.
2010-03-11 13:50:31 +01:00
Benjamin Otte
9b5ef584e2 check: Ref buffers after setting caps on them
Reffing makes metadata unwritable, so we need to set the caps before.
2010-03-11 12:18:50 +01:00
Stefan Kost
8551c49ff9 tags: add basic xmp metadata support
XMP metadata can be embedded in many media container formats. Implement own
parser and formatter that can be used to convert between an xpacket and a
GstTagList. Add unit tests.
2010-03-11 10:52:56 +02:00
Mark Nauwelaerts
66c1292cac tests: enable strict discontinuity checking on vorbisdec pipeline
Closes #423086.
2010-03-10 11:24:28 +01:00
Tim-Philipp Müller
c681ecab9f tests: fix typo in videorate unit test pipeline description
Two consecutive ! ! leave a 'Link without source' error in the debug log.
2010-03-10 00:59:10 +00:00
Tim-Philipp Müller
f7ca667189 tests: don't use deprecated functions in videorate unit test 2010-03-10 00:59:10 +00:00
Thiago Santos
e5f96a7a19 videorate: tests: New unit tests for upstream caps nego
Adds unit tests that check videorate's upstream caps
negotiation works properly (put passthrough caps
first)

Fixes #608025
2010-02-22 17:27:52 -03:00
Sebastian Dröge
40a841e377 playbin: Fix the primary-decoder-missing test with USE_DECODEBIN2 2010-02-15 10:23:13 +01:00
Sebastian Dröge
b326b77ffa playbin2: Enable all unit tests
They're all working and valgrind clean now.
2010-02-15 08:28:24 +01:00
Sebastian Dröge
ad9830f547 tests: Add decodebin2 test to .gitignore 2010-02-15 06:50:29 +01:00
Sebastian Dröge
93d7bd2c43 decodebin2: Add simple unit test, mainly a copy of the decodebin unit test
The only difference between the two unit tests right now is,
that the decodebin2 test resets the element to READY before trying
to reuse it instead of NULL. decodebin2 guarantees to be reusable
without going back to NULL.
2010-02-15 01:21:14 +01:00
Sebastian Dröge
b029c30aa0 playbin2: Enable playbin2 unit test
It now contains a single working unit test and can be enabled.
The other more useful unit tests still need fixing.
2010-02-14 23:10:06 +01:00
Sebastian Dröge
52a34b65b5 playbin: Fix indention in the unit test 2010-02-14 22:16:31 +01:00
Wim Taymans
59ace1b9ee adder: use collectpads clipping function
Install a clipping function in the collectpads and use the audio clipping helper
function to perform clipping to the segment boundaries.

Fixes #590265
2009-12-24 16:30:23 +01:00
Tim-Philipp Müller
fc73a73f0a checks: some more testing for the new language code functions 2009-12-13 18:42:11 +00:00
Tim-Philipp Müller
088c7c07a2 tag: add some utility functions for language codes and tags
Add some utility functions for language tags and ISO-639
codes. These are useful for both GUIs and elements. The
iso-codes package is used for language name translations
if available.

API: gst_tag_get_language_codes()
API: gst_tag_get_language_name()
API: gst_tag_get_language_code()
API: gst_tag_get_language_code_iso_639_1()
API: gst_tag_get_language_code_iso_639_2B()
API: gst_tag_get_language_code_iso_639_2T()
2009-12-12 15:48:37 +00:00
Stefan Kost
3d73a7458a adder: make events succeed, if they succed on atleast one pad 2009-11-19 21:28:23 +02:00
Jan Schmidt
36711ab477 video: Add functions to create/parse still frame events.
Add a new video event to mark the start or end of a still-frame
sequence, and a parser function to identify and extract info from
such events.
API: gst_video_event_new_still_frame()
API: gst_video_event_parse_still_frame()

Fixes: #601942
2009-11-18 00:10:57 +00:00
Sebastian Dröge
d086c05c1f cddabasesrc: Add unit test for property settings
Also includes a regression test for bug #601104.
2009-11-09 18:12:15 +01:00
Tim-Philipp Müller
7a2427e8fb .gitignore: ignore basetime unit test binary 2009-10-28 01:01:35 +00:00
Iago Toral
f63643bd54 subparse: Add support for DKS subtitle format
Fixes bug #598936.
2009-10-22 10:02:11 +02:00
Jan Schmidt
4b84d7552f check: Don't fail the basetime test when no audiosrc is available
On OS/X the DEFAULT_AUDIOSRC is not going to be available, because
it isn't in gst-plugins-base. Just defer the test, instead of
failing it.
2009-10-15 10:28:39 +01:00
Tommi Myöhänen
5e8e7c0358 tests: new test for baseaudiosrc base_time comparison
This test reveals a bug in comparison operation between timestamp and
GstElement's base_time in GstBaseAudioSrc.
2009-10-13 19:17:49 +03:00
Jan Schmidt
34480029fb check: Add valgrind suppressions for ALSA and fontconfig bits on Jaunty. 2009-10-09 15:11:52 +01:00
Benjamin Otte
4db9487a1f tests/check/libs/video.c: Update strides for Y41B 2009-10-07 11:49:18 +02:00
Sebastian Dröge
901dbc6ab4 cddabasesrc: Fix string leaks in the unit test and a leak in cddabasesrc 2009-09-17 17:00:10 +02:00
Jonathan Matthew
6781c4c9c5 cddabasesrc: ignore URI fragments that look like device paths
Rhythmbox uses cdda:// URIs of the form cdda://track#device, which
worked before the fix for bug #321532.

Also adds a check for negative track numbers and some unit tests for URI
parsing.

Fixes bug #595454.
2009-09-17 17:00:10 +02:00
Jan Schmidt
a9f815bd8d check: Improve audioresample test
Make the audioresample test work with CK_FORK=no, and
turn a g_print into a GST_INFO.
2009-09-11 21:44:18 +01:00
Sebastian Dröge
723b2baa5d volume: Implement GstStreamVolume interface 2009-09-11 16:37:35 +02:00
Sebastian Dröge
e22c843d0e audioresample: Add unit test for checking for timestamp drifts
This also checks for perfect timestamping and offsetting.
2009-08-26 09:10:18 +02:00
Sebastian Dröge
01408497a1 audioresample: Improve debugging a bit in the unit test 2009-08-26 09:10:18 +02:00
Tim-Philipp Müller
099989ff0f oggmux: don't drop the streamheader field from the output caps
Revert previous 'fix' for bug #588717 and fix it properly, whilst
maintaining the streamheader field on the output caps. Also make
sure we don't leak header buffers we couldn't push when downstream
is unlinked. Add unit test for the presence of the streamheader
field on the output caps and for the issue from bug #588717.
2009-08-20 13:14:19 +01:00
Sebastian Dröge
11ad341d35 streamheader: Fix caps leak in the vorbisenc unit test 2009-08-10 15:40:33 +02:00
Tim-Philipp Müller
cc6e70e8ec checks: fix stream header unit test hanging in gst_task_cleanup_all()
Set pipelines to NULL state and unref when done.
2009-08-10 14:14:30 +01:00
Tim-Philipp Müller
e199d7e1cd typefinding: fix detection of fLaC id packet in broken flac-in-ogg
There are flac-in-ogg files without the usual flac packet framing
and these files just have a 4-byte fLaC ID packet as first packet.
We need to recognise the type just from these four bytes if we
want oggdemux to recognise these streams correctly.
2009-08-01 19:01:39 +01:00
Edward Hervey
9819a3519d tests/adder: Add stream consistency checking. Fixes #588748 2009-07-20 11:30:07 +02:00
Jan Schmidt
de02af8d4f adder: One more attempt to fix the adder test
Give up and discard and recreate the alsasrc after checking it can
be opened, due to some strange crash inside alsa when we don't.
2009-07-14 15:31:13 +01:00
Jan Schmidt
7753d46350 adder: Perform get_state() in the unit test
Wait for the alsasrc to return to NULL after setting it to PAUSED for
testing, otherwise it leads to segfaults later on.
2009-07-14 15:06:41 +01:00
Jan Schmidt
b26eae25d0 adder: Don't fail when alsasrc is unavailable
Make the liveadder test succeed silently when it can't be completed
either because alsasrc is unavailable, or because the device is
inaccessible.
2009-07-14 14:39:32 +01:00
Stefan Kost
4736429c59 adder: skip live-seek text if we have no audiosrc, add new test
The seek-test needs a real audiosrc. Also add a test that checks that adder is
reusable. Finaly handle warnings as warnings to fix a assertion.
2009-07-10 19:01:25 +01:00
Sebastian Dröge
399d4fcbe7 gio: Try to reuse the pipeline with the same stream objects 2009-07-08 17:19:05 +02:00
Stefan Kost
92ecca7f24 adder: make test more robust
Add audioconverts to the live-seeking test to make it negotiate.
2009-07-06 20:44:00 +01:00
Branko Subasic
55a5679d89 Added unit tests for buffer list support in appsink. 2009-06-29 11:59:47 +02:00
Stefan Kost
6688af35eb adder: test seek handling in adder
This tests seeking on an adder that has a normal and a live source connected.
Wheter the current behavior is the desired one needs to be discussed still
(see #586033)
2009-06-22 22:18:03 +03:00
Wim Taymans
66c388a0e0 rtp: add bufferlist support 2009-06-18 18:51:04 +02:00