Commit graph

821 commits

Author SHA1 Message Date
Sebastian Dröge fb0384fa0d mulaw: Some minor memleak fixes and cleanup 2013-04-25 12:44:15 +02:00
Alexander Schrab f0edb5fb70 mulawenc: change to gstaudioencoder base, added bitrate tags 2013-04-25 12:36:15 +02:00
Tim-Philipp Müller a8e7cd0860 tests: fix some printf format issues in debug messages 2013-04-11 22:55:58 +01:00
Tim-Philipp Müller 7e91057934 tests: refactor new wavparse test a little
Use fakesrc instead of filesrc with /dev/null.

https://bugzilla.gnome.org/show_bug.cgi?id=696684
2013-04-09 00:28:54 +01:00
Alexander Schrab 79d5a7d03c wavparse: error out if we receive eos before any valid data
https://bugzilla.gnome.org/show_bug.cgi?id=696684
2013-04-09 00:27:31 +01:00
Stefan Sauer 2e56032031 level: subdivide buffers for sample accurate interval handling
Previously we would skip level message when processing buffers > the requested
interval. Also the message frequency would contain quite some jitter due to only
considering them at the end of buffers.

Cleanup the tests while we're at it.
2013-04-03 21:40:17 +02:00
Jonas Holmberg 08c5a04691 autodetect checktest: Do not fail without videosink
If there is no videosink available autovideosink will contain a
fakesink instead which needs special treatment in the unit test.
2013-03-11 10:54:48 +01:00
Tim-Philipp Müller 694dbcc5a0 dtmf: move dtmf plugin from -bad to -good
https://bugzilla.gnome.org/show_bug.cgi?id=687416
2013-03-09 01:18:30 +00:00
Tim-Philipp Müller a4c5aa38ec Merge branch 'dtmf-moved-from-bad'
https://bugzilla.gnome.org/show_bug.cgi?id=687416
2013-03-09 00:30:38 +00:00
Tim-Philipp Müller 0427524d73 tests: re-add suppression for GValueArray warnings to unit test as well 2013-02-28 17:38:47 +00:00
Jonas Holmberg fba30e3384 tests: use relative include for out-of-tree builds in dtmf test 2013-02-28 12:30:51 +00:00
Stefan Sauer b62cb3edcd level: add a "post-messages" property and deprecate "message"
In spectrum this was changed from 0.10 to 1.0, lets do this here too.
2013-02-28 09:43:12 +01:00
Olivier Crête ab2a342f42 tests: Add tests for dtmfsrc 2013-02-27 18:56:56 -05:00
Olivier Crête 0233eb9f79 tests: Fix ref leak in dtmf test 2013-02-27 16:15:33 -05:00
Thomas Vander Stichele 52b7aab711 level: send last message on EOS 2013-02-25 00:19:22 +01:00
Tim-Philipp Müller 7de14c5dbe tests: fix some h264 caps
Doesn't fix anything in particular, but is
still needed here for correctness.
2013-02-16 15:05:34 +00:00
Sebastian Dröge a7ddbc03fe rtp-payloading: Fix unit test caps and AMR depayloader sink template caps
Fields were missing from the actual caps, or too many fields
existed in the template caps.
2013-02-13 12:02:46 +01:00
Sebastian Dröge ae291fc40c aacparse: Fix caps used in the unit test
The AAC caps passed were incomplete.
2013-02-13 11:53:01 +01:00
Sebastian Dröge 17513dae66 wavpack: Fix unit tests, width is now called depth in the caps in 1.0 2013-02-13 11:49:40 +01:00
Tim-Philipp Müller 7d02a4dacb tests: make souphttpsrc unit test work even if http_proxy is set
We're testing with an http server on localhost, but don't support
an exception list for the http_proxy, so just unset the environment
variable to make sure we can run this test properly even if the
environment has http_proxy set.

Also, don't skip all tests if there is an issue with the SSL server,
just run the non-SSL tests then.

https://jenkins.qa.ubuntu.com/view/Raring/view/JHBuild%20Gnome/job/jhbuild-amd64-gst-plugins-good/
2013-02-12 23:34:38 +00:00
Stefan Sauer 02956d7778 level-example. avoid taking the arrays again for each channel for clarity
Also introduce some blank lines for better readability and update the comments.
2013-02-05 18:47:59 +01:00
B.Prathibha 7bb368ee4c tests: use g_timeout_add_seconds instead of g_timeout_add
https://bugzilla.gnome.org/show_bug.cgi?id=692615
2013-01-27 15:38:12 +00:00
Olivier Crête 6105510a7a tests: Add test for rtpdtmfdepay and rtpdtmfsrc 2013-01-25 21:05:39 -05:00
Tim-Philipp Müller 066600c18b tests: skip souphttpsrc tests if there is no local http server to use
Skip tests if the server couldn't be started or we can't connect
to it for some reason (e.g. draconic build bot environments).
2013-01-16 18:03:44 +00:00
Martin Pitt b46dcf379a tests: use _1_0 variants for the various registry variables
These override the variants without version suffix. Makes 'make check' work
properly in environments that set the suffixed variant for 1.0, such as
jhbuild.
2013-01-16 11:10:19 +00:00
Tim-Philipp Müller baac8ad663 tests: add test for souphttpsrc error handling with data
https://bugzilla.gnome.org/show_bug.cgi?id=678429
2013-01-01 19:14:36 +00:00
Tim-Philipp Müller 08702be68f cairo: port cairooverlay to 0.11
The other elements are not that interesting now that we're
using pangocairo in the pango plugin, and should probably
just be removed.
2013-01-01 11:52:09 +00:00
Tim-Philipp Müller 1a073355bc examples: check for uri argument in decodebin-h264p-amr server example
Otherwise people get a rather confusing error message.
2012-12-31 18:59:18 +00:00
Jonas Holmberg 60fa4536e2 tests: add jpegpay unit test
See also https://bugzilla.gnome.org/show_bug.cgi?id=684955
2012-12-20 16:15:13 +01:00
Tim-Philipp Müller 3295b5d791 rtpmanager: move rtpmux and rtpdtmfmux elements from -bad
https://bugzilla.gnome.org/show_bug.cgi?id=629117
2012-12-16 16:36:39 +00:00
Tim-Philipp Müller de204ba754 rtpmux: Fix FSF address
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-12-16 16:36:39 +00:00
Olivier Crête 15dfdc58d4 rtpmux: Misc fix for 0.11
Convert the incoming caps before proxying them
Clear the last_pad when going to ready

tests: Implement accept_caps, don't leak event
2012-12-16 16:36:38 +00:00
Olivier Crête f20a6b1d16 rtpmux: port to 0.11 2012-12-16 16:35:26 +00:00
Olivier Crête 5bd023fb96 tests: Change tests to not use the priority pads instead of the events 2012-12-16 16:35:14 +00:00
Olivier Crête 8e58646f5c rtpmux: Aggregate incoming segments 2012-12-16 16:35:14 +00:00
Benjamin Otte ed35e485b7 Add -Wmissing-declarations -Wmissing-prototypes to configure flags
And fix all warnings
2012-12-16 16:35:14 +00:00
Olivier Crête f3f1fa80c3 tests: Add test for rtpdtmfmux locking 2012-12-16 16:33:46 +00:00
Olivier Crête c0806e59bf tests: Add unit test for rtpmux 2012-12-16 16:33:46 +00:00
Wim Taymans 50391c7773 check: add (but disable) more rtp jitterbuffer tests
Tests need to be ported to 1.0 before they can be enabled but added here so they
don't get forgotten.

See https://bugzilla.gnome.org/show_bug.cgi?id=667838
2012-12-13 12:36:20 +01:00
Tim-Philipp Müller 672ab8fb5b webmux: fix linking with shout2send element
Shout2send only accepts webm format, not matroska, but due
to a bug in matroskamux, webmmux's source pad is also created
with the matroska source pad template as pad template, which
makes the link function think it can't link webmmux to shout2send.

Also add unit test.

https://bugzilla.gnome.org/show_bug.cgi?id=689336
2012-11-30 17:22:34 +00:00
Nicolas Dufresne 1ad8ebac44 videocrop: Add support for automatic cropping
This change enable automatic cropping using -1 set to left, top, right or
bottom property. In the case both side are set to automatic cropping, the
croping will be done equally on both side (in the odd case, right and
bottom cropping will be 1 pixel more).

https://bugzilla.gnome.org/show_bug.cgi?id=687761
2012-11-07 11:20:24 +01:00
Tim-Philipp Müller 230cf41cc9 Fix FSF address
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-11-04 00:07:18 +00:00
Wim Taymans 0de4b76d39 tests: fix level example
Use the GValueArray in the message.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=687154
2012-10-30 11:10:49 +00:00
Tim-Philipp Müller 49f49a2fbf tests: add multifilesrc test for fix in previous commit
Make sure the stop-index set is honoured.

https://bugzilla.gnome.org/show_bug.cgi?id=654853
2012-10-26 11:04:02 +01:00
Tim-Philipp Müller ff33d8d263 tests: remove superfluous g_type_init() call
It's deprecated in newer GLib and not needed here.

https://bugzilla.gnome.org/show_bug.cgi?id=686456
2012-10-20 13:01:41 +01:00
Tim-Philipp Müller 3bbbcd266c examples: update some element names for 1.0 in RTP examples
gstrtpbin -> rtpbin
ffdec_*   -> avdec_*
ffenc_*   -> avenc_*
2012-10-11 22:36:21 +01:00
Patricia Muscalu 7a863e4d8d rtph264pay: do not push unmapped data
Also do not use a GstBuffer after it has been pushed into the adapter.

https://bugzilla.gnome.org/show_bug.cgi?id=685213
2012-10-04 09:22:50 +01:00
Tim-Philipp Müller 2c4b7e03a2 tests: port gdkpixbufsink test 2012-10-01 14:03:19 +01:00
Tim-Philipp Müller e6d37eb30a Purge references to liboil
https://bugzilla.gnome.org/show_bug.cgi?id=673285
2012-09-29 12:41:37 +01:00
Tim-Philipp Müller 626e0258e3 videomixer: fix warnings when using transparent background
gst_video_frame_map() increases the refcount, which makes
the buffer not writable any more technically, so calling
gst_buffer_memset() on it will cause nasty warnings.

Unit test disabled because it very rarely (for me)
fails, possibly negotiation-related.

https://bugzilla.gnome.org/show_bug.cgi?id=684398
2012-09-25 23:31:34 +01:00
Tim-Philipp Müller df83b4e730 tests: remove g_printerr() that's not needed any longer
now that tcase_skip_broken_test() prints it as well.
2012-09-24 11:56:56 +01:00
Tim-Philipp Müller 63c4a29ac0 tests: disable failing replaygain tests 2012-09-23 19:50:42 +01:00
Tim-Philipp Müller e3ba13632b tests: dist image.jpg for jpeg test 2012-09-17 18:23:11 +01:00
Sebastian Dröge 198a5fd19c vp8: Add tests to .gitignore 2012-09-16 15:47:16 +02:00
Sebastian Dröge e6dbdffbfe vp8enc: Update patch to the new property names 2012-09-16 15:46:31 +02:00
Sebastian Dröge b0459448b7 vpx: Integrate test into the build system too 2012-09-16 15:46:22 +02:00
Wim Taymans 8337fcfe99 [MOVED FROM BAD 6/6] tests: fix more unit tests 2012-09-16 15:44:00 +02:00
René Stadler caa34f7bf7 [MOVED FROM BAD 5/6] tests: update for gstcheck API change 2012-09-16 15:44:00 +02:00
Sebastian Dröge 92eae76bdb [MOVED FROM BAD 4/6] vp8dec: Add simple unit test for vp8dec 2012-09-16 15:44:00 +02:00
Sebastian Dröge b072086ec0 [MOVED FROM BAD 3/6] vp8enc: Improve unit test a bit 2012-09-16 15:44:00 +02:00
Sebastian Dröge d983342dbd [MOVED FROM BAD 2/6] vp8enc: Also check the output caps in the unit test 2012-09-16 15:44:00 +02:00
Sebastian Dröge 63e28498c4 [MOVED FROM BAD 1/6] vp8enc: Add simple unit test 2012-09-16 15:44:00 +02:00
Mark Nauwelaerts a32398fee5 replace gst_element_class_set_details_simple with gst_element_class_set_metadata 2012-09-14 17:07:40 +02:00
Wim Taymans 829c80ce6c fix more caps 2012-09-14 13:30:37 +02:00
Tim-Philipp Müller a9e5d1246a tests: push stream-start and segment events in wavpackenc test 2012-09-14 00:47:38 +01:00
Tim-Philipp Müller 1d586d3bde tests: fix most of the rganalysis unit tests
Before the element would post messages on the bus itself, now
the sinks do that based on the tag events they receive. But
since we don't have proper sink elements in these unit tests,
but just dangling pads, we have to post the tag messages the
test checks for ourselves.

Down from 52/55 failing to 7/52 failing.
2012-09-12 00:16:31 +01:00
Mark Nauwelaerts 538578f345 tests: rtpbin: port to the new GLib thread API 2012-09-11 12:54:41 +02:00
Wim Taymans f0989b600a tests: fix id3demux test 2012-09-10 17:16:47 +02:00
Mark Nauwelaerts 7940a29c74 tests: rtp-payloading: adjust to modified bufferlist semantics
... now implemented by buffer memory blocks.
2012-09-07 15:25:53 +02:00
Mark Nauwelaerts 397e987c7d tests: deinterlace: do not leak deinterlace pads 2012-09-06 17:05:49 +02:00
Tim-Philipp Müller 9bf90f47cf video/x-xvid -> video/mpeg,mpegversion=4 2012-09-03 02:51:24 +01:00
Tim-Philipp Müller 4bb52bbadf docs: gst-launch -> gst-launch-1.0 and ffmpegcolorspace -> videoconvert 2012-08-27 21:20:30 +01:00
Tim-Philipp Müller 045c4b6ec8 deinterlace: the field in caps is "interlace-mode" not "interlace-method"
Fix deinterlace unit test. Need to set right field on output caps.
Also remove right field (not old 0.10 "interlaced" boolean field)
from caps in unit test before comparing old and new.
2012-08-27 21:20:29 +01:00
Tim-Philipp Müller d35fbcf6f1 tests: fix icydemux unit test
Was waiting for a tag message on the bus, which would never
come, because elements don't post those themselves any more
but let sinks post them from tag events. Only that there are
no sinks in this unit test.
2012-08-27 21:20:29 +01:00
Tim-Philipp Müller a62f9b178d tests: fix videocrop crop_to_1x1 unit test for GRAY8 format
Update table with pixel values with the value actually produced
by videotestsrc.
2012-08-27 21:20:29 +01:00
Stefan Sauer 1f255a585b equalizer: enable presets for the n-band equalizer
Add a test for saving and restoring the preset.
2012-08-17 15:01:40 +02:00
Olivier Crête 264bcf7d6f rtph264pay: Make it actually work after cleanups 2012-08-08 19:49:05 -07:00
Tim-Philipp Müller 4de8bd004c No code with side-effects inside g_assert() please 2012-08-08 11:07:55 +01:00
Tim-Philipp Müller c074bfd0b9 gst_tag_list_free -> gst_tag_list_unref 2012-08-04 16:10:16 +01:00
Sebastian Dröge 0827f54b93 tag: Update for taglist/tag event API changes 2012-07-28 00:19:51 +02:00
Mathias Hasselmann fc578e7699 tests: drop redundant elements_level_LDADD line
https://bugzilla.gnome.org/show_bug.cgi?id=676302
2012-07-08 13:34:08 +01:00
Tim-Philipp Müller f3f71b9749 tests: minor jpegdec clean-ups and fixes
Fix race condition in eos checking and a leak. And
build pipeline without parse_launch.
2012-07-08 13:30:34 +01:00
Mathias Hasselmann 0da9456ba2 tests: Add some basic tests for jpegdec
https://bugzilla.gnome.org/show_bug.cgi?id=676302
2012-07-08 12:56:31 +01:00
Tim-Philipp Müller cf9b2149dd isomp4: remove gppmux, which was deprecated in favour of 3gppmux 2012-07-06 12:54:02 +01:00
Tim-Philipp Müller 48706beb70 rtph263ppay: accept any h263 input unless downstream forces specific requirements
rtph263ppay should accept any input compatible with its sink template
caps if it just outputs to e.g. udpsink or fakesink.

rtph263ppay ! rtph263pdepay should also work with any compatible input.
This would fail before with not-negotiated errors because the get_caps
function would see the encoding-name in the depayloader's template caps
and default to baseline H.263 because there's no profile/level information
in those caps, which is the right thing to do if downstream has filtercaps
from an SDP, but not if those fields are absent because they can be
anything like with the depayloader's template caps. Makes

  videotestsrc ! avenc_h263p ! rtph263ppay ! rtph263pdepay ! fakesink

work.
2012-07-06 11:57:38 +01:00
Tim-Philipp Müller 76625d20d7 tests: fix h263p payload ! depayload unit test
Need to add h263version field to input caps since the
payloader sink get_caps function will contain it in the
the caps, and the stricter caps subset check requires
this to be present in the input caps as well then.
2012-07-06 11:57:38 +01:00
Tim-Philipp Müller 91d97d31e2 tests: fix rgvolume unit test event handling
Must flush after EOS before sending more buffers or
another EOS event, or the event or buffer will be
rejected. Also send a SEGMENT event at the start
of each stream for good measure.
2012-07-05 15:14:33 +01:00
Tim-Philipp Müller a94c1a7fdb tests: fix rganalysis unit test event handling
Must flush after EOS before sending more buffers or
another EOS event, or the event or buffer will be
rejected. Also send a SEGMENT event at the start
of each stream for good measure.
2012-07-04 23:57:18 +01:00
Tim-Philipp Müller 94e54887fb tests: disable deinterlace test for now, element still needs to be ported
But leave it active and print a FIXME. Porting is in progress.
2012-07-04 12:39:07 +01:00
Javier Jardón c6cb95f5b2 tests: do not use deprecated gtk+ symbols
https://bugzilla.gnome.org/show_bug.cgi?id=679301
2012-07-03 09:54:15 +01:00
Wim Taymans d1b0ff6c06 update for bus api changes 2012-06-20 12:31:01 +02:00
Wim Taymans dc04908412 update for clock api changes 2012-06-20 10:01:57 +02:00
Wim Taymans f65495d405 update for audio api change 2012-06-08 10:11:12 +02:00
Wim Taymans 443a14bdbf tests: add test for rtpsession cleanup 2012-06-07 10:44:31 +02:00
Wim Taymans b5df4f0e62 update for tag event change 2012-06-06 13:02:12 +02:00
Wim Taymans 37df608fdc fix Y800 format 2012-06-06 13:00:58 +02:00
Tim-Philipp Müller dd75c21670 annodex: remove annodex plugin and CMML elements
This never really took off and is most likely completely
unused. If there is still a need for this, it should
probably be done differently, perhaps inside oggdemux/mux.
2012-05-13 19:21:19 +01:00
Tim-Philipp Müller 95da93fcb7 tests: fix matroskamux unit test after media type changes 2012-04-28 23:14:24 +01:00
Mark Nauwelaerts 7aee9156ed tests: oss4: limit test scope 2012-04-20 18:18:55 +02:00
Sebastian Dröge d99eb6d2cb Update everything for the removal of the interface library and mixer/tuner interfaces 2012-04-13 13:15:11 +02:00