platform/upstream/gstreamer.git
2 years agoRelease 1.19.2
Tim-Philipp Müller [Thu, 23 Sep 2021 00:36:10 +0000 (01:36 +0100)]
Release 1.19.2

2 years agovalidate: fix relative paths for test files
Vivienne Watermeier [Mon, 13 Sep 2021 16:24:18 +0000 (18:24 +0200)]
validate: fix relative paths for test files

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/256>

2 years agovalidate: Fix double freeing of GstStructure
Thibault Saunier [Fri, 10 Sep 2021 20:11:29 +0000 (17:11 -0300)]
validate: Fix double freeing of GstStructure

gst_validate_get_config is transfer-container only

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/255>

2 years agovalidate-utils: Only modify structure fields that really need updates
Edward Hervey [Fri, 20 Aug 2021 07:22:28 +0000 (09:22 +0200)]
validate-utils: Only modify structure fields that really need updates

This avoids memory corruption in users of that structure which
were (rightfullly) assuming static fields (such as name) wouldn't
change. Without this, they would be using strings which will have been freed in
the meantime.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/252>

3 years agovalidate-media-descriptor: Don't check segment position field
Edward Hervey [Thu, 15 Jul 2021 12:42:51 +0000 (14:42 +0200)]
validate-media-descriptor: Don't check segment position field

The position field of GstSegment is meant for private usage within
elements. Don't compare the values of it when doing media-check.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/251>

3 years agovalidate: use `extract_objects` to avoid rebuilding all files for the tracer
Thibault Saunier [Tue, 8 Jun 2021 16:28:49 +0000 (12:28 -0400)]
validate: use `extract_objects` to avoid rebuilding all files for the tracer

And add the tracer to the plugins list so it can be used in our
uninstalled environment.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/250>

3 years agoBack to development
Tim-Philipp Müller [Tue, 1 Jun 2021 14:29:21 +0000 (15:29 +0100)]
Back to development

3 years agoRelease 1.19.1
Tim-Philipp Müller [Mon, 31 May 2021 23:16:57 +0000 (00:16 +0100)]
Release 1.19.1

3 years agovalidate: Error out on invalid 'foreach' iterator types
Thibault Saunier [Wed, 26 May 2021 01:25:14 +0000 (21:25 -0400)]
validate: Error out on invalid 'foreach' iterator types

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/248>

3 years agovalidate: Handle unknown type in foreach types
Thibault Saunier [Wed, 26 May 2021 01:00:09 +0000 (21:00 -0400)]
validate: Handle unknown type in foreach types

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/248>

3 years agovalidate: Make array delemiter a line continuation char
Thibault Saunier [Mon, 24 May 2021 05:26:41 +0000 (01:26 -0400)]
validate: Make array delemiter a line continuation char

Making its usage more friendly

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/248>

3 years agovalidate:scenario: Allow iterating over arrays in `foreach`
Thibault Saunier [Mon, 24 May 2021 05:20:47 +0000 (01:20 -0400)]
validate:scenario: Allow iterating over arrays in `foreach`

We used to only support ranges, but we want to allow iterating over
values in an array too.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/248>

3 years agovalidate: Add a flag to allow defining how to resolve variables in structs
Thibault Saunier [Mon, 24 May 2021 05:19:13 +0000 (01:19 -0400)]
validate: Add a flag to allow defining how to resolve variables in structs

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/248>

3 years agovalidate:flow: Log caps features
Thibault Saunier [Mon, 24 May 2021 02:43:04 +0000 (22:43 -0400)]
validate:flow: Log caps features

No reason not to use directy the GstCaps serialization function here
This commits avoids needing regenerated all expectations to remove
the `;` which is not generated anymore as it is simple and makes
merging simpler.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/248>

3 years agovalidate: launcher: Simplify fakesink handling
Philippe Normand [Thu, 20 May 2021 15:43:25 +0000 (16:43 +0100)]
validate: launcher: Simplify fakesink handling

Now the function returns either a fakeaudiosink or a fakevideosink, depending on
the media type.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/246>

3 years agovalidate:flow: Sort fields in serialized structures
Thibault Saunier [Thu, 20 May 2021 14:45:34 +0000 (10:45 -0400)]
validate:flow: Sort fields in serialized structures

Otherwise change in element implementations could lead to meaningless
breakages

3 years agovalidate:scenario: Allow forcing running action on idle from scenario file
Thibault Saunier [Tue, 12 Jan 2021 18:38:03 +0000 (15:38 -0300)]
validate:scenario: Allow forcing running action on idle from scenario file

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/235>

3 years agovalidate:scenario: Add a `run-command` action type
Thibault Saunier [Tue, 12 Jan 2021 18:37:08 +0000 (15:37 -0300)]
validate:scenario: Add a `run-command` action type

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/235>

3 years agovalidate:monitor: Only get_name on GstObject
Thibault Saunier [Tue, 12 Jan 2021 18:36:05 +0000 (15:36 -0300)]
validate:monitor: Only get_name on GstObject

GObject don't have such method!

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/235>

3 years agovalidate: add config file support
Stéphane Cerveau [Thu, 29 Apr 2021 08:09:05 +0000 (10:09 +0200)]
validate: add config file support

Each test can now use a config file for
the given media file used to test.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/243>

3 years agoUse gst_element_request_pad_simple...
François Laignel [Wed, 21 Apr 2021 11:54:38 +0000 (13:54 +0200)]
Use gst_element_request_pad_simple...

Instead of the deprecated gst_element_get_request_pad.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/241>

3 years agoscenario: Fix action variable name
Edward Hervey [Mon, 19 Apr 2021 13:00:18 +0000 (15:00 +0200)]
scenario: Fix action variable name

This was always meant to be `on-message=eos` (like in fast_forward.scenario)

Fixes #58

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/240>

3 years agogst: don't use volatile to mean atomic
Matthew Waters [Fri, 19 Mar 2021 06:16:33 +0000 (17:16 +1100)]
gst: don't use volatile to mean atomic

volatile is not sufficient to provide atomic guarantees and real atomics
should be used instead.  GCC 11 has started warning about using volatile
with atomic operations.

https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719

Discovered in https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/868

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/238>

3 years agobash-completion: add gst-validate script
Stéphane Cerveau [Fri, 26 Feb 2021 14:32:29 +0000 (15:32 +0100)]
bash-completion: add gst-validate script

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/237>

3 years agovalidate:launcher: Ensure a positive job count.
Brady J. Garvin [Sat, 30 Jan 2021 16:01:54 +0000 (10:01 -0600)]
validate:launcher: Ensure a positive job count.

The default number of jobs to use is half of the available cores
rounded down, but in situations where only one core is available (such
as under some VMs), this means that `gst-validate-launcher` defaults
to using zero jobs, a case that the test-running code is not prepared
to handle.

This change makes the code match the documentation for the `--jobs` option,
guards against negative values both in the default setting and in argument
parsing, and introduces some defensive programming to prevent other situations
where the code might try to use zero jobs.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/154>

3 years agopad-monitor: Plug a leak
Thibault Saunier [Fri, 8 Jan 2021 11:38:12 +0000 (08:38 -0300)]
pad-monitor: Plug a leak

3 years agovalidate: Do not check strv length on NULL pointers
Thibault Saunier [Tue, 5 Jan 2021 13:06:40 +0000 (10:06 -0300)]
validate: Do not check strv length on NULL pointers

This is not legal

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/234>

3 years agovalidate: Allow using the new nested structure syntax
Thibault Saunier [Tue, 15 Dec 2020 21:18:29 +0000 (18:18 -0300)]
validate: Allow using the new nested structure syntax

And port the deeply nested tests we have

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/233>

3 years agovalidate: Only consider the first pipeline when using test files
Thibault Saunier [Tue, 15 Dec 2020 21:18:29 +0000 (18:18 -0300)]
validate: Only consider the first pipeline when using test files

And port the deeply nested tests we have

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/233>

3 years agovalidate: Add missing GstValidateAction annotations
Thibault Saunier [Tue, 15 Dec 2020 21:18:29 +0000 (18:18 -0300)]
validate: Add missing GstValidateAction annotations

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/233>

3 years agovalidate: Add an `expected-values` parameter to `wait, message-type=XX`
Thibault Saunier [Tue, 15 Dec 2020 21:15:50 +0000 (18:15 -0300)]
validate: Add an `expected-values` parameter to `wait, message-type=XX`

Allowing more precise filtering of the message we are waiting for.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/233>

3 years agovalidate: scenario: Add a GstValidateScenario::action-done signal
Thibault Saunier [Tue, 15 Dec 2020 21:02:00 +0000 (18:02 -0300)]
validate: scenario: Add a GstValidateScenario::action-done signal

Allowing application to know when a specific action is done.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/233>

3 years agovalidate: Enhance printing action execution information
Thibault Saunier [Tue, 15 Dec 2020 21:00:58 +0000 (18:00 -0300)]
validate: Enhance printing action execution information

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/233>

3 years agovalidate: Add an API to get the bin monitor scenario
Thibault Saunier [Tue, 15 Dec 2020 20:58:51 +0000 (17:58 -0300)]
validate: Add an API to get the bin monitor scenario

This is useful for applications that use Validate directly.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/233>

3 years agoscenario: Ensure that messages are handled from the right thread
Thibault Saunier [Thu, 10 Dec 2020 19:26:15 +0000 (16:26 -0300)]
scenario: Ensure that messages are handled from the right thread

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/233>

3 years agodebug-viewer: Make appdata valid again
Philippe Normand [Sun, 29 Nov 2020 10:05:36 +0000 (10:05 +0000)]
debug-viewer: Make appdata valid again

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/229>

3 years agovalidate:scenario: Fix the refcount management for actions in structures
Thibault Saunier [Tue, 8 Dec 2020 14:46:37 +0000 (11:46 -0300)]
validate:scenario: Fix the refcount management for actions in structures

Handling the refcounting the same whether the action is blocking or not
as we were leaking a ref for non-blocking waits.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/231>

3 years agovalidate:scenario: Minor cleanup
Thibault Saunier [Tue, 8 Dec 2020 13:57:15 +0000 (10:57 -0300)]
validate:scenario: Minor cleanup

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/231>

3 years agovalidate: Use gst_validate_action_*ref everywhere.
Thibault Saunier [Tue, 8 Dec 2020 13:55:28 +0000 (10:55 -0300)]
validate: Use gst_validate_action_*ref everywhere.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/231>

3 years agovalidate: Add support to check properties of object properties
Thibault Saunier [Tue, 1 Dec 2020 02:06:18 +0000 (23:06 -0300)]
validate: Add support to check properties of object properties

And recursively

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/231>

3 years agovalidate: add sync-version
Stéphane Cerveau [Fri, 6 Nov 2020 11:43:57 +0000 (12:43 +0100)]
validate: add sync-version

Be able by the command line to change the sync version
which is usually the GST_VALIDATE_TESTSUITE_VERSION
from the test suite

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/227>

3 years agoscenario: Add a 'non-blocking' flag to the `wait` signal
Thibault Saunier [Fri, 20 Nov 2020 01:41:40 +0000 (22:41 -0300)]
scenario: Add a 'non-blocking' flag to the `wait` signal

This way we can execute actions that will lead to the signal
emission later in the execution.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/228>

3 years agovalidate:scenario: Rename 'interlaced' action to 'non-blocking'
Thibault Saunier [Fri, 20 Nov 2020 13:16:28 +0000 (10:16 -0300)]
validate:scenario: Rename 'interlaced' action to 'non-blocking'

It is a better and more understandable naming.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/228>

3 years agomeson: Check cairo-png dependency
Seungha Yang [Fri, 23 Oct 2020 13:40:41 +0000 (22:40 +0900)]
meson: Check cairo-png dependency

Should check whether libpng dependent methods are available or not

Fixes: https://gitlab.freedesktop.org/gstreamer/gst-build/-/issues/128
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/225>

3 years agomeson: Enable some MSVC warnings for parity with GCC/Clang
Nirbheek Chauhan [Wed, 4 Nov 2020 13:19:03 +0000 (18:49 +0530)]
meson: Enable some MSVC warnings for parity with GCC/Clang

This makes it easier to do development with MSVC by making it warn
on common issues that GCC/Clang error out for in our CI configuration.

Continuation from https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/223

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/226>

3 years agomeson: update glib minimum version to 2.56
Stéphane Cerveau [Fri, 16 Oct 2020 10:49:02 +0000 (12:49 +0200)]
meson: update glib minimum version to 2.56

In order to support the symbol g_enum_to_string in various
project using GStreamer ( gst-validate etc.), the glib minimum
version should be 2.56.0.

Remove compat code as glib requirement
is now > 2.56

Version used by Ubuntu 18.04 LTS

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/224>

3 years agovalidate:launcher: Bump hard timeouts for all transcodin tests
Thibault Saunier [Sun, 22 Mar 2020 12:51:40 +0000 (09:51 -0300)]
validate:launcher: Bump hard timeouts for all transcodin tests

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/172>

3 years agolauncher: Avoid variable framerate when encoding to theora
Thibault Saunier [Sat, 21 Mar 2020 14:57:51 +0000 (11:57 -0300)]
launcher: Avoid variable framerate when encoding to theora

It is not supported by theoraenc.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/172>

3 years agovalidate: Scale down even more to speed up encoding in VP9
Thibault Saunier [Fri, 20 Mar 2020 12:05:52 +0000 (09:05 -0300)]
validate: Scale down even more to speed up encoding in VP9

From 3min to 50secs to execute here.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/172>

3 years agovalidate:transcoding: Port to GstTranscoder
Thibault Saunier [Thu, 19 Mar 2020 21:48:08 +0000 (18:48 -0300)]
validate:transcoding: Port to GstTranscoder

Remove flag to force EOS on sigintr, making it the only choice
Also add support for variable framerate

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/172>

3 years agovalidate: Use pad.last_flowret instead of trying to compute it ourselves
Thibault Saunier [Thu, 19 Mar 2020 21:41:24 +0000 (18:41 -0300)]
validate: Use pad.last_flowret instead of trying to compute it ourselves

Which makes it more accurate

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/172>

3 years agoreport: Add a way to force backtraces on reports
Thibault Saunier [Thu, 19 Mar 2020 21:26:58 +0000 (18:26 -0300)]
report: Add a way to force backtraces on reports

And stop report simple debug message

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/172>

3 years agovalidate:launcher: Add a way to define test timeout from dicts
Thibault Saunier [Tue, 17 Mar 2020 15:19:46 +0000 (12:19 -0300)]
validate:launcher: Add a way to define test timeout from dicts

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/172>

3 years agoMeson: Use pkg-config generator
Xavier Claessens [Thu, 6 Aug 2020 12:00:53 +0000 (08:00 -0400)]
Meson: Use pkg-config generator

3 years agogstvalidate.supp: update location of gst.supp
Jordan Petridis [Thu, 10 Sep 2020 21:38:00 +0000 (21:38 +0000)]
gstvalidate.supp: update location of gst.supp

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/221>

3 years agodocs: Update gst-validate-launcher documentation
Thibault Saunier [Tue, 12 May 2020 13:26:40 +0000 (09:26 -0400)]
docs: Update gst-validate-launcher documentation

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/193>

3 years agoci: include template from gst-ci master branch again
Tim-Philipp Müller [Tue, 8 Sep 2020 16:30:56 +0000 (17:30 +0100)]
ci: include template from gst-ci master branch again

3 years agoBack to development
Tim-Philipp Müller [Tue, 8 Sep 2020 15:59:12 +0000 (16:59 +0100)]
Back to development

3 years agoRelease 1.18.0
Tim-Philipp Müller [Mon, 7 Sep 2020 23:10:18 +0000 (00:10 +0100)]
Release 1.18.0

3 years agoRevert "Revert "launcher: add webrtcbin datachannel tests to valgrind skip list""
Tim-Philipp Müller [Wed, 26 Aug 2020 14:47:23 +0000 (15:47 +0100)]
Revert "Revert "launcher: add webrtcbin datachannel tests to valgrind skip list""

This reverts commit ff79af843bc40a554795ee2a0682cfd12272dd24.

Looks like most of these are still problematic and flaky in valgrind,
so re-add to skiplist for now.

https://gitlab.freedesktop.org/thaytan/gst-plugins-base/-/jobs/4275045

3 years agoRevert "launcher: add webrtcbin datachannel tests to valgrind skip list"
Tim-Philipp Müller [Mon, 24 Aug 2020 22:59:14 +0000 (23:59 +0100)]
Revert "launcher: add webrtcbin datachannel tests to valgrind skip list"

This reverts commit 369c74941f1607b421bc2f16edcaea0b887926a9.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1383

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/220>

3 years agoRelease 1.17.90
Tim-Philipp Müller [Thu, 20 Aug 2020 15:16:50 +0000 (16:16 +0100)]
Release 1.17.90

3 years agovalidate:check: Blacklist new ges valgrind test
Thibault Saunier [Fri, 14 Aug 2020 01:55:09 +0000 (21:55 -0400)]
validate:check: Blacklist new ges valgrind test

I can't find what the issue is and the test is very long anyway

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/219>

3 years agovalidate: flow: Plug some leaks
Thibault Saunier [Fri, 14 Aug 2020 00:51:52 +0000 (20:51 -0400)]
validate: flow: Plug some leaks

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/219>

3 years agovalidate:scenario: Plug some leaks
Thibault Saunier [Thu, 13 Aug 2020 20:19:50 +0000 (16:19 -0400)]
validate:scenario: Plug some leaks

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/219>

3 years agolauncher: add webrtcbin datachannel tests to valgrind skip list
Tim-Philipp Müller [Thu, 13 Aug 2020 23:27:25 +0000 (00:27 +0100)]
launcher: add webrtcbin datachannel tests to valgrind skip list

They were previously not run because the sctp plugin wasn't built
but they will be run now that we bundle libusrsctp.

https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1465

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/218>

3 years agovalidate: silence g-ir-scanner warnings about GST_IS_VALIDATE_*
Tim-Philipp Müller [Sat, 25 Jul 2020 20:12:00 +0000 (21:12 +0100)]
validate: silence g-ir-scanner warnings about GST_IS_VALIDATE_*

Which it complains about because we say our prefix is 'gst_validate'
so it should really be GST_VALIDATE_IS_* instead.

Hide the boilerplate defines from g-ir-scanner, it doesn't need
to process them.

Fixes #46

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/214>

3 years agoRevert "validate: fix up gir namespace and symbol prefix"
Thibault Saunier [Mon, 27 Jul 2020 13:06:39 +0000 (09:06 -0400)]
Revert "validate: fix up gir namespace and symbol prefix"

This reverts commit b73e81614021a856fc7d3ff221a9bbf5ebf2ce6e.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/214>

3 years agovalidate: fix up gir namespace and symbol prefix
Tim-Philipp Müller [Sat, 25 Jul 2020 22:40:05 +0000 (23:40 +0100)]
validate: fix up gir namespace and symbol prefix

Change gir namespace and symbol prefix from
GstValidate / gst_validate to Gst / gst, same
as we do for other libs like GstVideo etc.

Helps with warnings about GST_IS_VALIDATE_*

Fixes #46, Closes !214

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/215>

3 years agovalidate: Fix media descriptor mp3 like formats
Thibault Saunier [Sat, 25 Jul 2020 17:57:01 +0000 (13:57 -0400)]
validate: Fix media descriptor mp3 like formats

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/216>

3 years agovalidate-scenario: reflow #ifdef to work around bogus g-ir-scanner warning
Tim-Philipp Müller [Sat, 25 Jul 2020 19:27:48 +0000 (20:27 +0100)]
validate-scenario: reflow #ifdef to work around bogus g-ir-scanner warning

Looks like a scanner bug.

The endif comments are the wrong way round too, but that's not it.

gst-validate-scenario.c:126: mismatched #endif  /* G_HAVE_GNUC_VARARGS */

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/213>

4 years agoBack to development
Tim-Philipp Müller [Fri, 3 Jul 2020 01:04:19 +0000 (02:04 +0100)]
Back to development

4 years agoRelease 1.17.2
Tim-Philipp Müller [Thu, 2 Jul 2020 23:37:27 +0000 (00:37 +0100)]
Release 1.17.2

4 years agovalidate: Always check if scenario is done from the right thread
Thibault Saunier [Thu, 18 Jun 2020 16:46:39 +0000 (12:46 -0400)]
validate: Always check if scenario is done from the right thread

Action will be set_done from the right thread and we will check if the action is done from there

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/212>

4 years agovalidate: Print errors on action failures
Thibault Saunier [Tue, 16 Jun 2020 19:34:04 +0000 (15:34 -0400)]
validate: Print errors on action failures

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/207>

4 years agovalidate: Plug some leaks
Thibault Saunier [Mon, 15 Jun 2020 21:32:13 +0000 (17:32 -0400)]
validate: Plug some leaks

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/207>

4 years agovalidate: Move action finalization to _set_done where it belongs
Thibault Saunier [Mon, 15 Jun 2020 20:17:55 +0000 (16:17 -0400)]
validate: Move action finalization to _set_done where it belongs

gst_validate_action_set_done is the place where we should finalize the
action, not in `execute_next`, this way we better handle printing
interlaced action finalization too.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/207>

4 years agovalidate:scenario: Replace the `sub-action` with a `foreach` action type
Thibault Saunier [Mon, 15 Jun 2020 14:50:14 +0000 (10:50 -0400)]
validate:scenario: Replace the `sub-action` with a `foreach` action type

Sub-actions were really hard to use and conceptually weird. The
implementation was ugly and made the code complex for nothing.

Instead this commit introduces a `foreach` action type which allows
repeating actions passed in an `actions` array the number of time
specified by any `GstIntRange` value defined in the structure or its
`repeat` field.

This commit also makes sure that all action got through
gst_validate_action_set_done upon finalization.

+ Cleanup surrounding code
+ Add tests

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/207>

4 years agovalidate: scenario: Implement 'repeat' by copying actions
Thibault Saunier [Mon, 15 Jun 2020 13:17:55 +0000 (09:17 -0400)]
validate: scenario: Implement 'repeat' by copying actions

Instead of trying to reuse the same action structure and deal with
that in a complex way, copy the action the required number of times.

And add a simple test

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/207>

4 years agovalidate:scenario: Round results of expressions in a sensible way
Thibault Saunier [Mon, 15 Jun 2020 13:32:23 +0000 (09:32 -0400)]
validate:scenario: Round results of expressions in a sensible way

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/207>

4 years agolauncher: Keep running tests forever on KNOWN_ERROR
Thibault Saunier [Mon, 15 Jun 2020 14:54:20 +0000 (10:54 -0400)]
launcher: Keep running tests forever on KNOWN_ERROR

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/207>

4 years agovalidate: Add private action type to check number of action type calls
Thibault Saunier [Mon, 15 Jun 2020 13:37:21 +0000 (09:37 -0400)]
validate: Add private action type to check number of action type calls

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/207>

4 years agovalidate:scenario: Avoid dereferencing NULL structure
Thibault Saunier [Mon, 15 Jun 2020 13:14:16 +0000 (09:14 -0400)]
validate:scenario: Avoid dereferencing NULL structure

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/207>

4 years agovalidate: Fix marking expected issues as criticals
Thibault Saunier [Mon, 15 Jun 2020 13:08:51 +0000 (09:08 -0400)]
validate: Fix marking expected issues as criticals

And never mark a repeat expected reports as repeated

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/207>

4 years agovalidate: Add a way to use the expression parser in any field
Thibault Saunier [Fri, 12 Jun 2020 14:08:25 +0000 (10:08 -0400)]
validate: Add a way to use the expression parser in any field

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/207>

4 years agovalidate: Allow variables to be set with other types than strings
Thibault Saunier [Fri, 12 Jun 2020 14:05:57 +0000 (10:05 -0400)]
validate: Allow variables to be set with other types than strings

And use value serialization from GStreamer to convert

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/207>

4 years agoscenario: Add an action to remove a feature/plugin from the registry
Thibault Saunier [Fri, 12 Jun 2020 13:58:24 +0000 (09:58 -0400)]
scenario: Add an action to remove a feature/plugin from the registry

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/207>

4 years agovaliadate: Add a test for setting/checking (timed) properties
Thibault Saunier [Wed, 10 Jun 2020 21:18:49 +0000 (17:18 -0400)]
valiadate: Add a test for setting/checking (timed) properties

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/207>

4 years agovalidate:scenario: Add action to set and check several properties at once
Thibault Saunier [Wed, 10 Jun 2020 20:44:04 +0000 (16:44 -0400)]
validate:scenario: Add action to set and check several properties at once

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/207>

4 years agovalidate: Add an action type to set timed value properties
Thibault Saunier [Wed, 10 Jun 2020 19:39:12 +0000 (15:39 -0400)]
validate: Add an action type to set timed value properties

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/207>

4 years agodebug-viewer: Add screenshot
Philippe Normand [Fri, 19 Jun 2020 09:26:17 +0000 (10:26 +0100)]
debug-viewer: Add screenshot

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/210>

4 years agoBack to development
Tim-Philipp Müller [Fri, 19 Jun 2020 23:28:39 +0000 (00:28 +0100)]
Back to development

4 years agoRelease 1.17.1
Tim-Philipp Müller [Fri, 19 Jun 2020 18:27:58 +0000 (19:27 +0100)]
Release 1.17.1

4 years agovalidate: flow: record GstRegionOfInterestMeta
Vivek R [Fri, 12 Jun 2020 14:01:41 +0000 (19:31 +0530)]
validate: flow: record GstRegionOfInterestMeta

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/206>

4 years agovalidate:launcher: Ensure that the main directory exists
Thibault Saunier [Mon, 15 Jun 2020 22:37:51 +0000 (18:37 -0400)]
validate:launcher: Ensure that the main directory exists

Fixes https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/issues/53 part 1

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/209>

4 years agovalidate:tests: Cleanup the way set environment vars
Thibault Saunier [Mon, 15 Jun 2020 22:06:33 +0000 (18:06 -0400)]
validate:tests: Cleanup the way set environment vars

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/209>

4 years agovalidate: Stop trying to support uninstalled autotools
Thibault Saunier [Mon, 15 Jun 2020 21:56:54 +0000 (17:56 -0400)]
validate: Stop trying to support uninstalled autotools

Fix https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/issues/53 part 2

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/209>

4 years agovalidateflow: Plug leak
Thibault Saunier [Tue, 9 Jun 2020 21:29:08 +0000 (17:29 -0400)]
validateflow: Plug leak

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/205>

4 years agoscenario: Fix waiting for signal
Thibault Saunier [Mon, 8 Jun 2020 18:01:49 +0000 (14:01 -0400)]
scenario: Fix waiting for signal

The signal callback signature was just wrong and not generic leading to
crash if waiting for any signal that didn't match it. This commit fixes
it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/205>

4 years agoscenario: Add an option to set properties on all instances
Thibault Saunier [Mon, 8 Jun 2020 18:00:44 +0000 (14:00 -0400)]
scenario: Add an option to set properties on all instances

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/205>