summaryrefslogtreecommitdiff
path: root/tests/check/libs/audiodecoder.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: audiodecoder: speed up audiodecoder_buffer_after_segment testTim-Philipp Müller2019-03-091-2/+4
| | | | | | | We're creating buffers with one sample here for some reason. The actual value of the segment stop is irrelevant for what we're testing here, so lower it to 10ms so that we create fewer buffers which speeds things up on slow machines and in valgrind.
* tests: audiodecoder: fix another c99-ismTim-Philipp Müller2017-01-091-1/+1
| | | | Missed one.
* Fix indentationTim-Philipp Müller2017-01-091-12/+16
|
* tests: audiodecoder: fix compiler warnings due to c99-ismTim-Philipp Müller2017-01-091-1/+3
| | | | audiodecoder.c:160:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
* audiodecoder: fix invalid timestamps when PLC and delayMikhail Fludkov2016-06-161-16/+137
| | | | | | | | | | | Elements inherited from GstAudioDecoder, supporting PLC and introducing delay produce invalid timestamps. Good example is opusdec with in-band FEC enabled. After receiving GAP event it delays the audio concealment until the next buffer arrives. The next buffer will have DISCONT flag set which will make GstAudioDecoder to reset it's internal state, thus forgetting the timestamp of GAP event. As a result the concealed audio will have the timestamp of the next buffer (with DISCONT flag) but not the timestamp from the event.
* base: use new gst_element_class_add_static_pad_template()Vineeth TM2016-03-241-4/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=763075
* tests: fix indentation of various unit testsTim-Philipp Müller2016-01-061-12/+8
|
* audiodecoder-test: port to using GstHarnessHavard Graff2015-10-111-332/+188
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=754196
* tests: audiodecoder: add unit test for tag handlingTim-Philipp Müller2015-08-161-0/+226
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=679768
* tests: audiodecoder: add test to make sure gap is pushed before segmentThiago Santos2015-08-101-0/+55
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=753360
* tests: fix crashes in {audio,video}{decoder,encoder} tests on 32-bitTim-Philipp Müller2015-02-271-1/+1
| | | | | | | | Don't feed 64-bit integer variable into vararg function that expects an unsigned integer to go with GST_TAG_TRACK_NUMBER. This would cause crashes on 32-bit platforms, and if not that then test failures if the comparisons fail later (at least on big endian platforms).
* tests: audiodecoder: tests for caps query implementationThiago Santos2014-12-171-23/+194
| | | | Copied from videodecoder tests and updated to audio features
* tests: audiodecoder: fix indentationTim-Philipp Müller2014-12-121-4/+3
|
* tests: audiodecoder: fix broken refcounting in unit testTim-Philipp Müller2014-12-121-2/+1
| | | | | | | | | | The set_format vfunc does not pass ownership of the caps to the decoder, so we mustn't unref the caps there. gst_event_new_caps() does not take ownership of the caps passed, so we must unref the caps afterwards. Fixes leaks when running test in valgrind in 1.4 branch.
* audiodecoder: Push pending events before sending EOS.Mathieu Duponchelle2014-12-051-1/+36
| | | | | | | | | Segments are added to the pending events, and pushing a segment is mandatory before sending EOS. + Adds a test. https://bugzilla.gnome.org/show_bug.cgi?id=740853
* audiodecoder: extend flush_events test to check for event leaksOgnyan Tonchev2014-09-171-16/+59
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=736788
* audiodecoder: Don't be too picky about the output frame counterSebastian Dröge2014-06-201-1/+64
| | | | | | | | | | | | | | | | | | With most decoder libraries, and especially when accessing codecs via OpenMAX or similar APIs, we don't have the ability to properly related the output buffers to a number of input samples. And could e.g. get a fractional number of input buffers decoded at a time. Previously this would in the end lead to an error message and stopped playback. Change it to a warning message instead and try to handle it gracefully. In theory the subclass can now get timestamp tracking wrong if it completely misuses the API, but if on average it behaves correct (and gst-omx and others do) it will continue to work properly. Also add a test for the new behaviour. We don't change it in the encoder yet as that requires more internal logic changes AFAIU and I'm not aware of a case where this was a problem so far.
* audiodecoder: Keep still meaningfull pending events on FLUSH_STOPThibault Saunier2014-06-031-0/+104
| | | | | | Only EOS and segment should be deleted in that case. https://bugzilla.gnome.org/show_bug.cgi?id=709868
* tests: videodecoder: audiodecoder: add tests for eos after segmentThiago Santos2014-05-261-0/+64
| | | | Tests that pushing a buffer after the segment returns EOS
* audiodecoder: Actually allocate enough memory for 64 bits, not just 32 bitsSebastian Dröge2014-04-151-16/+13
| | | | Also fix a memory leak.
* tests: audiodecoder: add another test for negotiation with gap eventThiago Santos2014-01-151-7/+57
| | | | | | | | | Check that even if the subclass doesn't call set_output_format, the base class should use upstream provided caps to fill the output caps that is pushed before the gap event is forwarded, otherwise it ends again fixating the rate and channels to 1. https://bugzilla.gnome.org/show_bug.cgi?id=722144
* tests: audiodecoder: check that negotiation works buffers and gapsThiago Santos2014-01-141-1/+94
| | | | | | | Adds 2 tests to verify that output caps are the expected value, reusing input structure values for both buffers and gaps https://bugzilla.gnome.org/show_bug.cgi?id=722144
* tests: audiodecoder: add basic playback test for audio decoderThiago Santos2014-01-141-0/+294
Simple test that just check that audio decoding works as expected https://bugzilla.gnome.org/show_bug.cgi?id=722144