Thibault Saunier
eac22d333a
tests:nle: Unref the bus before unrefing the pipeline
...
Aiming at fixing a rare race condition where we get:
../subprojects/gstreamer/libs/gst/check/gstcheck.c:1258:F:nlecomposition:test_seek_on_nested:0: nested_src0_0x1a1a310 is not destroyed, 1 refcounts left!
The idea is that there might have a remaining GstMessage
with the nested_src as `message.src` on the bus that has
yet to be processed in some conditions leading to a reference
still existing when unrefing the pipeline.
2019-08-12 17:40:33 -04:00
Thibault Saunier
955d177dd6
formatter: Plug lists of TimedValue leak
2019-07-26 13:48:52 -04:00
Thibault Saunier
c125093bb1
xml-formatter: Fix loading sources
...
And fix the project file which couldn't be load now that we
properly check clips coherency
2019-07-26 13:48:51 -04:00
Thibault Saunier
a5fa2c35aa
ges: Implement subprojects
...
Subprojects simply consist of adding the GESProject
to the main project asset list. Then those are recursively
serialized in the main project in the <asset> not, when deserializing,
temporary files are created and those will be used in clips
as necessary
2019-07-26 13:48:48 -04:00
Thibault Saunier
b3bac67f58
nle: Check seeking on deeply nested composition
2019-07-05 18:30:41 -04:00
Swayamjeet
147cbcd6e1
tests: Add ges-sample-path-recurse with projects location
...
So that project files are found when using nested timelines
2019-07-05 18:30:41 -04:00
Thibault Saunier
8bf3256ddf
validate: Add a way to use validate configs with scenarios
...
Config files should have the-scenario-name.scenario.config to be picked automatically
2019-07-05 18:30:41 -04:00
Thibault Saunier
b8b9441adb
validate: Use proper sink and give them good names
2019-07-05 18:30:41 -04:00
Thibault Saunier
564505e16f
uri-asset: Fix retrieving a relocated asset sync twice
...
Add a simple test for that.
2019-07-05 18:11:04 -04:00
Thibault Saunier
e903f15380
nlecomposition: Shutdown children when setting state to NULL
...
Otherwise if we shutdown a composition whith an nested composition
(inside a source in the test) and leak it, we end up with the nested
composition task still running (in READY) which is bad.
Add a test for that which leaks the pipeline on purpose.
2019-07-05 18:01:51 -04:00
Swayamjeet
ad6d1964af
tests: Implement nested timelines tests
2019-07-05 18:00:33 -04:00
Thibault Saunier
3d11893fd7
nle: Add a seeking test for nested composition
2019-07-05 17:54:40 -04:00
Thibault Saunier
14d1f558b1
xml-formatter: Load assets before their proxies
...
Paving the way to removing pending fields to make the code
simpler to follow.
2019-07-05 17:44:31 -04:00
Thibault Saunier
b3e449fd4f
container: Handle children pasting failures
2019-06-05 00:43:48 +00:00
Thibault Saunier
3b95bec095
clip: Fix layer managament when copying a clip that was pasted
2019-06-05 00:43:48 +00:00
Thibault Saunier
ded3a5fb2f
element: Properly handle the fact that pasting can return NULL
...
And fix paste annotation
2019-06-05 00:43:48 +00:00
Thibault Saunier
dafc1cd8d1
tests: Simply include ges-internal.h instead of redefining the same macros
2019-05-23 17:16:27 -04:00
Thibault Saunier
4ded3b8838
python: Avoid warning about using deprecated methods
...
Fixes https://gitlab.freedesktop.org/gstreamer/gst-editing-services/issues/69
2019-05-04 10:47:27 -04:00
Thibault Saunier
2d8be79cb7
xml-formatter: Fix some asset leaks
2019-04-15 17:11:48 -04:00
Thibault Saunier
86ac3b3159
tests: Plug misc leaks
2019-04-15 17:11:48 -04:00
Thibault Saunier
cfd5fda38d
title: Deprecate method that return newly allocated const gchar*
...
This is just plain broken 190643508f
but we can't do anything about it.
2019-04-15 17:11:48 -04:00
Thibault Saunier
2b79c0db5e
tests: Avoid random timeout and let the launcher set it up for us
2019-04-15 17:11:48 -04:00
Thibault Saunier
adc4843f53
xml-formatter: Plug leaks of pending groups
2019-04-15 17:11:48 -04:00
Thibault Saunier
7f0810bae7
Fix splitting control bindings leaks
2019-04-15 17:11:48 -04:00
Thibault Saunier
49b004fe30
tests: Fix a leak in the 'asset' test
2019-04-15 16:18:11 -04:00
Thibault Saunier
a46390ff56
Reimplement the timeline editing API
...
This is implemented on top of a Tree that represents the whole timeline.
SourceClips can not fully overlap anymore and the tests have been
updated to take that into account. Some new tests were added to verify
that behaviour in greater details
2019-03-15 23:51:55 +00:00
Thibault Saunier
4a1679f698
tests: Add utilities to print the timeline
...
Making debugging tests simpler
2019-03-15 23:51:55 +00:00
Thibault Saunier
7c5f2d11b2
timeline-element: Add a method to retrieve layer priority
...
Each timeline element is in a layer (potentially spanning
over several), it is very often useful to retrieve an element
layer priority (from an app perspective more than the element
priority itself as that is a bit of an implementation detail
in the end).
Port tests to it
2019-03-15 23:51:55 +00:00
Thibault Saunier
85e4262917
tests:python: assertEquals is deprecated, use assertEqual
2019-03-15 23:51:55 +00:00
Thibault Saunier
df731aba35
tests: python: Move assertTimelineTopology to the baseclass
2019-03-15 23:51:55 +00:00
Thibault Saunier
1c2784daa6
clip: Add a method to get the priority of the layer it is in
...
Just an helper method to get the 'priority of a the clip'
2019-03-15 23:51:55 +00:00
Thibault Saunier
c901e4289a
clip: Rollback moving clips when moving a contained TrackElement fails
...
And fix unit tests to match the correct behaviour
2019-03-15 23:51:55 +00:00
Thibault Saunier
957d9a01fe
Shorten GES_FORMAT output
2019-03-15 23:51:55 +00:00
Thibault Saunier
430719d172
clip: Make sure to remove and re add effects when adding clips to layer
...
And make re add them in the same order.
And enhance tests to check that
2019-03-15 23:51:55 +00:00
Thibault Saunier
cef58baf9f
meson: Build benchmarks
2019-03-15 16:18:58 -03:00
Seungha Yang
12d8448cf8
tests: Add inconsistent init/deinit test case
2019-03-12 15:17:18 +00:00
Thibault Saunier
facea28b28
tests:python: Use proper GES.Project constructor
...
Avoiding a g_critical
2019-03-07 12:38:23 +00:00
Thibault Saunier
35e39083a2
tests: Fix usage of undefined class
2019-01-30 19:00:10 +00:00
Yeongjin Jeong
4bf91bda31
tests: ges: Fix various leak
2019-01-29 16:17:22 +09:00
Alexandru Băluț
c750345c75
timeline: Better handle loading inconsistent timelines
...
Auto transition when having 3 overlapping clips in a same point in the
timeline is not supported as we can't handle it in a nice way. Before we
to avoid creating 2 overlapping transitions (which is plain broken in
NLE) were completely disabling `auto-transition` and removing all
auto-transitions in the timeline but this is pretty weird for the end
user. This commit changes and now makes sure 2 transitions are not
created in the same place.
Also cleanup previous test case.
2019-01-28 21:32:58 -03:00
Thibault Saunier
bad64296d9
uri-asset: Use the same code path for sync discovery as the async one
...
And start handling relocated assets.
Also expose the discoverer callback as a vmethod so that we can
overridde the discoverer when necessary (to handle discovering of
timeline through gesdemux for example)
2019-01-29 00:06:32 +00:00
Thibault Saunier
c596f80c63
nlecomposition: Get overall pipeline position by recursing up
...
And handle NLEComposition inside NLEComposition
Fixes https://gitlab.freedesktop.org/gstreamer/gst-editing-services/issues/39
2019-01-29 00:06:32 +00:00
Thibault Saunier
dea6f0df98
layer: Resort clips before syncing priorities
...
We set the priorities making the assumption that `start_clips` is properly
ordered by start!
Fixes https://gitlab.gnome.org/GNOME/pitivi/issues/2254
2019-01-28 19:19:46 -03:00
Seungha Yang
044c2a2d75
tests: asset: Add test async asset request with custom GMainContext
...
... and test call ges_{init/deinit} multiple times in a unit test.
2019-01-28 19:31:52 +09:00
Seungha Yang
23845faa90
tests: asset: Remove out-of-date comment
2019-01-28 17:35:04 +09:00
Seungha Yang
27212f2d10
tests: asset: Remove pointless gst_init()
...
It's done by GST_CHECK_MAIN() already
2019-01-28 17:35:04 +09:00
Seungha Yang
78b38f26a7
tests: init/deinit per test case
...
... in order to verify init/deinit pair.
2019-01-28 17:35:04 +09:00
Seungha Yang
61c2eb6735
tests: nle: Fix various leak
...
Don't leak GError and GstPad object
2019-01-18 20:32:02 +00:00
Seungha Yang
a157c9fa10
tests: nle: Fix GList leak
2019-01-18 20:32:02 +00:00
Seungha Yang
a799e1be23
tests: ges: Fix various leak
2019-01-18 20:32:02 +00:00