summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* gl/examples/qt: restrict the GL API to opengl where neededMatthew Waters2016-03-173-0/+9
| | | | | Until the examples are ported to opengl3/gles2, they will not work with any other GL api.
* gl/examples/gtk: call XInitThreadsMatthew Waters2016-03-177-9/+48
| | | | Fixes some sporadic X11 threading assertions.
* gl/examples/cube*: choose opengl by defaultMatthew Waters2016-03-102-16/+16
| | | | | | The examples don't work with any other GL API. Also fix the yuv example to not translate the cube out of the clipping area.
* gl/examples/fxtest: add needed glupload to the pipelineMatthew Waters2016-03-101-3/+4
| | | | Fixes a negotiation failure in the example
* gldisplay: make readding the same context a no-opMatthew Waters2016-03-081-0/+92
| | | | | | | | | With e38af2304427db908a16bbae0e60aa68be1ba5b5 returning the correct contexts, gst_gl_display_add_context() was susceptible to causing infinte loops when adding the same GstGLContext more than once. Fix and add a test for gst_gl_display_add_context(). Fixes glvideomixer gst-validate tests.
* gtk: examples: #define GST_USE_UNSTABLE_API and link with X11_LIBSSebastian Dröge2016-03-051-4/+8
| | | | | X11_LIBS is needed for XInitThreads() and without the #define we get warnings about the GL API being still unstable.
* adaptivedemux: handle snap seeking without setting any positionThiago Santos2016-02-261-10/+39
| | | | | | | | | When the start_type is GST_SEEK_TYPE_NONE for a forward seek (or stop_type for a reverse) is not set on a snap seeking operation, the element should use the current position and then snap as requested. Also fixes uninitialized variable complaint by clang about 'ts' variable.
* opus: remove Opus encoder/decoder, moved to -baseTim-Philipp Müller2016-02-263-346/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=756282
* hlsdemux: tests: pass test name into test setup functionAlex Ashley2016-02-251-5/+6
| | | | | | | | | | | | | All hlsdemux tests create a GstStructure called "state" that can be used by test cases to store information during a test. The name of this structure is arbitrary. When the code was written, the intention was to use the name of the test, to aid debugging. However, during development this was lost, so that the state GstStructure is always given the name "setup_test_variables". This commit changes this so that the name of the test is used. https://bugzilla.gnome.org/show_bug.cgi?id=762684
* tests: compositor: drop special case for valgrind timeoutThiago Santos2016-02-251-11/+0
| | | | | | | | The default one is 6 minutes, the test was using 5 minutes so just resort to using the default. For the non-valgrind test also use the default 20 secs instead of reducing it to 6s. No real reason to set a custom value here.
* tests: compositor: add tests for caps queriesThiago Santos2016-02-251-69/+80
| | | | | Verifies that proper caps are returned based on what downstream restricts.
* videoaggregator: fix caps queries to allow proper renegotiationThiago Santos2016-02-251-0/+211
| | | | | | | | | | | | | When caps are already negotiated it should be possible to select formats other than the one that was negotiated. If downstream allows alpha video caps and it has already negotiated to a non-alpha format, caps queries should still return the alpha caps as a possible format as caps renegotiation can happen. Includes tests (for compositor) to check that caps queries done after a caps has been negotiated returns complete results https://bugzilla.gnome.org/show_bug.cgi?id=757610
* tests: remove test files no longer neededTim-Philipp Müller2016-02-164-4/+1
|
* mpg123: move plugin from -bad to -uglyTim-Philipp Müller2016-02-163-547/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=719849
* netsim: Add netsim elementStian Selnes2016-02-122-0/+66
| | | | | | | Resurrected from the Farstream repository and given an overhaul to fix races, deadlocks etc. https://bugzilla.gnome.org/show_bug.cgi?id=756252
* mpdparser: renamed gst_mpd_client_get_next_segment_availability_end_time to ↵Florin Apostol2016-02-091-12/+15
| | | | | | | | | | | | gst_mpd_client_get_next_segment_availability_start_time The function actually returns the segment availability start time (as defined by the standard). That is at the end of the segment, but it is called availability start time. Availability end time is something else (the time when the segment is no longer available on the server). The function name was misleading. https://bugzilla.gnome.org/show_bug.cgi?id=757655
* mpdparser: tests: added unit test for getting segment availability when ↵Florin Apostol2016-02-091-0/+51
| | | | | | segment timeline is used https://bugzilla.gnome.org/show_bug.cgi?id=757655
* adaptive_demux: tests: improved validation of padsFlorin Apostol2016-02-091-21/+17
| | | | | | | When removing a pad, the on_demuxPadRemoved function must find a stream for that pad. https://bugzilla.gnome.org/show_bug.cgi?id=760328
* adaptive_demux: tests: fix pad used for AppSink eventFlorin Apostol2016-02-091-2/+6
| | | | | | on_demuxNewPad registered the on_appsink_event callback on a wrong pad. https://bugzilla.gnome.org/show_bug.cgi?id=760328
* adaptivedemux: tests: remove unused demux_sent_eos callbackFlorin Apostol2016-02-092-18/+0
| | | | | | | | The demux_sent_eos callback is unused in tests. It was also registered on a wrong pad, so it actually triggered when demux received eos from a fragment download. https://bugzilla.gnome.org/show_bug.cgi?id=760328
* adaptivedemux: tests: remove unneeded youtube xmlns from manifestsFlorin Apostol2016-02-091-8/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=760328
* tests: extend the AM_TESTS_ENVIRONMENT from check.makThiago Santos2016-02-051-1/+1
| | | | | | To get the CK_DEFAULT_TIMEOUT defined for all tests https://bugzilla.gnome.org/show_bug.cgi?id=761472
* tests: mssdemux: add unit testsThiago Santos2016-02-043-0/+649
| | | | | | | | | | Adds unit tests similar to the ones that we have for DASH and HLS. Tests: * manifest parsing finishes successfully * some queries (duration, seekable, latency) * seeking with various values and flags
* tests: dashdemux: add tests for snap flags seekingThiago Santos2016-02-041-0/+47
| | | | | | | | | | | Similar to HLS but DASH has the extra issue that it can have multiple streams so snapping can be tricky as streams usually won't be aligned. For now, those tests handle the case of only having a single stream. https://bugzilla.gnome.org/show_bug.cgi?id=759158
* tests: dashdemux: add test for updating stop positionThiago Santos2016-02-011-8/+20
| | | | | Test that a seek that only updates the stop position works as expected
* tests: dash: fix dash tests after index fixThiago Santos2016-02-011-1/+3
| | | | | 8e788f284508612982e8e38336eed676c2eec35a broke one of the dash mpd tests. This updates and fixes it.
* tests: fix warning in qml exampleHolger Kaelberer2016-02-011-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=756082
* Remove gsettings plugin which was never portedTim-Philipp Müller2016-01-311-2/+2
| | | | | | | Don't think we need this any longer or want to support it, and clearly no one has been missing it all these years either, so let's just get rid of it.
* tests: adaptive-stremaing: fix memory leak in test_http_srcFlorin Apostol2016-01-181-0/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=760600
* adaptivedemux: replace ghostpad with a standard padThiago Santos2016-01-153-13/+43
| | | | | | | | | | | | Handling the ghostpad and its internal pad was causing more issues than helping because of their coupled activation/deactivation actions. As we have to install custom chain,event and query functions it is better to use a floating sink pad internally in the demuxer and just use those pad functions to push through a standard pad in the demuxer https://bugzilla.gnome.org/show_bug.cgi?id=757951
* gl: add a gstglquery object for arbitrary GL queriesMatthew Waters2016-01-153-0/+161
| | | | Currently only GL_TIME_ELAPSED and GL_TIMESTAMP are supported
* tests: hlsdemux: add test for updating segment stopThiago Santos2016-01-072-48/+57
| | | | | Add a test for seeking that only updates stop position and verifies that start is unmodified
* glcontext: implement checking whether a context has been sharedMatthew Waters2016-01-071-0/+29
| | | | | | | | Some operations are unnecessary when running with only a single GL context. e.g. glFlush when setting a fence object as the flush happens on wait. API: gst_gl_context_is_shared
* tests: dashdemux: add tests for post-seek segment boundaries checkThiago Santos2016-01-061-0/+107
| | | | | | | Checks if the post seek segment is what is expected. Also makes it easy to add more tests with different seeking flags using the same functions.
* tests: hlsdemux: add tests for seek with reverse rate and snap flagsThiago Santos2016-01-061-0/+22
| | | | | Add tests to ensure snap flags work as expected for reverse rates
* tests: hls_demux: add tests for seeking segmentThiago Santos2016-01-062-4/+119
| | | | | | Tests that check that the segment sent after a seek is correct. Allows testing that multiple seeking flags work as expected
* tests: adaptive_demux: add function to be able to check demuxer eventsThiago Santos2016-01-064-3/+101
| | | | | | Allows writing tests that verify that events are correct. Useful to monitor and check segments after seeks, for example.
* tests: adaptive: update to allow more flexible seeking testsThiago Santos2016-01-064-8/+26
| | | | | Allows defining a seek event to be able to change seeking parameters and create more seeking test scenarios
* tests: hlsdemux: fix makefile variable typoThiago Santos2016-01-061-1/+1
|
* player: Remove gst_player_new() and make gst_player_new_full() the normal ↵Sebastian Dröge2016-01-041-4/+4
| | | | | | | | constructor In very few cases the simple version was actually needed and having the parameters hidden by a _full() version caused application that actually needed it to not use it.
* tests/glmemory: output data pointer values on failureMatthew Waters2015-12-301-16/+23
| | | | Allows quicker inspection of what failed.
* tests: fix indentationTim-Philipp Müller2015-12-235-43/+39
|
* tests: pcapparse: add check for 0-sized packetsTim-Philipp Müller2015-12-231-0/+47
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=756573
* player: Add unit test that is disabled by defaultSebastian Dröge2015-12-232-1/+1537
| | | | | The unit test is downloading a few small media files from the Internet, which are then used during the test. "make clean" removes the files again.
* hlsdemux: tests: check URL joining if media URL contains a '/' characterAlex Ashley2015-12-221-0/+21
| | | | | | | | | | | If the query parameter (for example http://example.net/1054559_1500k.mp4/master.m3u8?acl=/*1054559_1500k.mp4), check that m3u8.c correctly converts the relative URLs of the media playlists in to absolute URLs. It must not use the last '/' it finds in the URL, as according to RFC3986 the '/' character is allowed in the query part of the URL. https://bugzilla.gnome.org/show_bug.cgi?id=758384
* hlsdemux: unquote all the quoted-string attributesAlex Ashley2015-12-221-2/+25
| | | | | | | | | | | | | | | | | | The URI attribute from the EXT-X-KEY tag and the URI attribute from the EXT-X-I-FRAMES-ONLY tag are both quoted-string attibutes that have their quotation marks removed during parsing. The CODECS attribute of the EXT-X-STREAM-INF is also a quoted-string attribute, but this attribute was not being un-quoted. This commit changes the parser to always unquote all quoted-string attributes and adjusts the unit tests to this new bevahiour for the CODECS attribute. An additional test is added to check that parsing of all of the fields in the EXT-X-STREAM tag is correct, including those that contain comma characters. https://bugzilla.gnome.org/show_bug.cgi?id=758384
* hlsdemux: tests: add unit tests for hlsdemuxAlex Ashley2015-12-223-2/+607
| | | | | | | | | | | | | | | | | | | | | | | | | | Using the new GstAdaptiveDemux test framework, add tests that exercise hlsdemux. The following tests are added: simpleTest A simple playlist that contains some media URLs testMediaPlaylist A master playlist with a variant playlist that contains media URLs testMediaPlaylistNotFound A master playlist that points to a missing variant playlist testFragmentNotFound A master playlist with a variant playlist that contains media URLs There is a missing media file referenced from the variant playlist. testFragmentDownloadError A master playlist with a variant playlist that contains media URLs During the download of one media file, the test simulates the network connection being dropped. testSeek A simple test of trying to perform a seek on an HLS stream.
* dashdemux: tests: Refactor into adaptive_engine componentsAlex Ashley2015-12-2210-1606/+2485
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To allow code from dash_demux.c to be used by other elements that are based upon GstAdaptiveDemux, the code has been refactored into four new files: adaptive_demux_engine.[ch] adaptive_demux_common.[ch] The code in adaptive_demux_engine.c provides a generic test engine for elements based upon GstAdaptiveDemux. The code in adaptive_demux_common.c provides a set of utility functions that are common between the tests for hlsdemux and dashdemux. As part of the refactoring, variables in structures were renamed from using camelCase to underscore_case to match other GStreamer source code. The fake_http_src was renamed test_http_src and changed to use callbacks to provide input data and error conditions. Rather than using an array of input data that tries to encode all the possible use cases for the GstTestHTTPSrc element, use a struct of callbacks. Users of this element are obliged to implement at least the src_start callback, which provides a way to link from a URI to the settings for that URI.
* glcolorconvert: Fix name of testsuiteSebastian Dröge2015-12-211-1/+1
|
* gl*memory*: reverse the parameter order of user_data and destroy notifyMatthew Waters2015-12-171-1/+1
| | | | The convention is to have the destroy notify last after any user data