Commit graph

18 commits

Author SHA1 Message Date
Thibault Saunier
4ba564fdbf Move files from gst-plugins-ugly into the "subprojects/gst-plugins-ugly/" subdir 2021-09-24 16:14:45 -03:00
Jordan Petridis
995a135df6 amrnbenc: remove global variables
gstcheck is declaring its own buffers glist which ends up
overwritten, loks like the code meant to use that already

gcc 10 is also complaining about this, but only on static
builds for some reason

```
FAILED: subprojects/gst-plugins-ugly/tests/check/elements_amrnbenc
/usr/bin/ld: subprojects/gstreamer/libs/gst/check/libgstcheck-1.0.a(gstcheck.c.o):(.bss+0x38): multiple definition of `buffers'; subprojects/gst-plugins-ugly/tests/check/708af1f@@elements_amrnbenc@exe/elements_amrnbenc.c.o:(.bss+0x18): first defined here
collect2: error: ld returned 1 exit status
```

also remove unused var `current_buf`

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly/-/merge_requests/62>
2020-07-29 08:38:31 +00:00
Sebastian Dröge
7653bf6324 amrnbenc: Fix various compiler warnings in the test 2015-12-24 14:48:50 +01:00
Edward Hervey
fe14a23327 check: Use GST_CHECK_MAIN () macro everywhere
Makes source code smaller, and ensures we go through common initialization
path (like the one that sets up XML unit test output ...)
2015-06-02 16:31:10 +02:00
Sebastian Dröge
e29d352f77 tests: Fix event handling 2013-05-13 13:19:27 +02:00
Tim-Philipp Müller
9c690b2018 Fix FSF address
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-11-03 20:40:37 +00:00
Sebastian Dröge
2ec36a9c0a elements: Use gst_pad_set_caps() instead of manual event fiddling 2012-06-08 15:55:42 +02:00
Mark Nauwelaerts
336c76cb11 tests: make more valgrind-friendly and plug caps leak 2012-03-29 17:32:08 +02:00
Wim Taymans
20de8b3ebd tests: fix some tests 2012-02-07 11:06:29 +01:00
Wim Taymans
bc3c7aa05e tests: make tests compile 2012-01-04 10:33:27 +01:00
Tim-Philipp Müller
c5838071d5 tests: port amrnbenc test to 0.11 2011-10-30 15:05:56 +00:00
Sebastian Dröge
e7425b898c amrnbenc: Use complete raw audio caps in the test 2011-09-07 14:36:46 +02:00
Stefan Kost
46e76ef87d tests/check/elements/amrnbenc.c: and fix compilation of this test
Original commit message from CVS:
* tests/check/elements/amrnbenc.c: (setup_amrnbenc),
(cleanup_amrnbenc):
and fix compilation of this test
2006-12-22 13:06:24 +00:00
Stefan Kost
687a8de8f6 tests/check/elements/: re-apply as it was -bad and not -ugly that is frozen, doh
Original commit message from CVS:
* tests/check/elements/amrnbenc.c: (setup_amrnbenc),
(cleanup_amrnbenc):
* tests/check/elements/mpeg2dec.c: (setup_mpeg2dec),
(cleanup_mpeg2dec):
re-apply as it was -bad and not -ugly that is frozen, doh
2006-12-22 12:41:52 +00:00
Stefan Kost
5e564d0a7b tests/check/elements/: revert my freeze breakage
Original commit message from CVS:
* tests/check/elements/amrnbenc.c: (setup_amrnbenc),
(cleanup_amrnbenc):
* tests/check/elements/mpeg2dec.c: (setup_mpeg2dec),
(cleanup_mpeg2dec):
revert my freeze breakage
2006-12-21 12:50:00 +00:00
Stefan Kost
9a9c15cec3 gst/asfdemux/gstasfdemux.c: add a comment about a future change
Original commit message from CVS:
* gst/asfdemux/gstasfdemux.c:
(gst_asf_demux_get_gst_tag_from_tag_name),
(gst_asf_demux_process_ext_content_desc):
add a comment about a future change
* tests/check/elements/amrnbenc.c: (setup_amrnbenc),
(cleanup_amrnbenc):
* tests/check/elements/mpeg2dec.c: (setup_mpeg2dec),
(cleanup_mpeg2dec):
consistent pad (de)activation
2006-12-21 08:16:41 +00:00
Wim Taymans
f1dd335024 tests/check/elements/amrnbenc.c: Init memory before feeding it to the encoder to make the valgrind test succeed.
Original commit message from CVS:
* tests/check/elements/amrnbenc.c: (push_data):
Init memory before feeding it to the encoder to make
the valgrind test succeed.
2006-06-12 13:49:42 +00:00
Thomas Vander Stichele
566525df79 add test for amrnbenc, enable test infrastructure, and fix a leak
Original commit message from CVS:
add test for amrnbenc, enable test infrastructure, and fix a leak


* common/check.mak:
allow for specifying more than one suppressions file in SUPPRESSIONS
* Makefile.am:
* tests/Makefile.am:
* tests/check/.cvsignore:
* tests/check/Makefile.am:
* tests/check/elements/.cvsignore:
* configure.ac:
add tests/check
* tests/check/gst-plugins-ugly.supp:
add suppressions for libs used by -ugly
* tests/check/elements/amrnbenc.c: (buffer_new), (buffer_unref),
(setup_amrnbenc), (cleanup_amrnbenc), (push_data),
(GST_START_TEST), (amrnbenc_suite), (main):
add a simple test for encoding amr
* ext/amrnb/amrnbenc.c: (gst_amrnbenc_init):
fix pad template leaks
2006-04-10 14:47:11 +00:00