platform/upstream/gst-editing-services.git
5 years agonlecomposition: Drop all group-done but the last one
Thibault Saunier [Sat, 29 Jun 2019 00:19:20 +0000 (20:19 -0400)]
nlecomposition: Drop all group-done but the last one

5 years agovalidate: Allow scenarios to set track types
Thibault Saunier [Fri, 28 Jun 2019 21:35:40 +0000 (17:35 -0400)]
validate: Allow scenarios to set track types

5 years agotests: Add ges-sample-path-recurse with projects location
Swayamjeet [Wed, 19 Jun 2019 10:22:21 +0000 (15:52 +0530)]
tests: Add ges-sample-path-recurse with projects location

So that project files are found when using nested timelines

5 years agovalidate: Add a way to use validate configs with scenarios
Thibault Saunier [Sun, 23 Jun 2019 17:03:54 +0000 (13:03 -0400)]
validate: Add a way to use validate configs with scenarios

Config files should have the-scenario-name.scenario.config to be picked automatically

5 years agovalidate: Use proper sink and give them good names
Thibault Saunier [Sun, 23 Jun 2019 17:03:04 +0000 (13:03 -0400)]
validate: Use proper sink and give them good names

5 years agovalidate: Create folders as needed when serializing timelines
Thibault Saunier [Sun, 23 Jun 2019 16:42:21 +0000 (12:42 -0400)]
validate: Create folders as needed when serializing timelines

5 years agonlesource: Wait for the seek to actualy happen before removing the probe
Thibault Saunier [Sun, 23 Jun 2019 03:49:50 +0000 (23:49 -0400)]
nlesource: Wait for the seek to actualy happen before removing the probe

Make sure that an event resulting from the seek happens before removing
the pad probe, dropping anything while it is not the case.

This guarantees that the seek happens before `nlesource` outputs
anything. This was not necessary as with decodebin or usual source
flushing seeks lead to synchronous flush_start/flush_stop and we could
safely assume that once the seek is sent, it was happenning.
With nested `nlecomposition` this assumption is simply not true as
in the composition seeks are basically cached and happen later in
the composition updating thread.

This fixes races where we ended up removing the blocking probe before
the seek actually started to be executed in the nlecomposition
nested inside an nlesource which leaded to data from *before* the seek
to be outputed which means we could display wrong frames,
and it was leading to interesting deadlocks.

5 years agonlecomposition: Minor debugging enhancements
Thibault Saunier [Sun, 23 Jun 2019 03:25:57 +0000 (23:25 -0400)]
nlecomposition: Minor debugging enhancements

5 years agouri-asset: Fix retrieving a relocated asset sync twice
Thibault Saunier [Fri, 21 Jun 2019 15:45:20 +0000 (11:45 -0400)]
uri-asset: Fix retrieving a relocated asset sync twice

Add a simple test for that.

5 years agotimeline: Make adding/removing track MT safe
Thibault Saunier [Fri, 21 Jun 2019 14:47:34 +0000 (10:47 -0400)]
timeline: Make adding/removing track MT safe

It was almost the case already so make it happen fully

5 years agonlecomposition: Ensure flushes after seek have the right seqnum
Thibault Saunier [Wed, 19 Jun 2019 22:14:52 +0000 (18:14 -0400)]
nlecomposition: Ensure flushes after seek have the right seqnum

Seeks that lead to a stack change lead to deactivating the current
stack. At that point we explicitely flush downstream as a reaction to
the flushing seek. Until now those flushes had a random seqnum, this
fails if we are a nested compostion as the parent composition will end
up dropping that flush which in turns might lead to deadlocks. For
example, the flush goes through a `compositor` which wants to flush
downstream to stop its srcpad task, but that flush wouldn't have
"released" its srcpad thread if the composition srcpad drops it, meaning
it won't be able to stop the task ever.

5 years agonlecomposition: Shutdown children when setting state to NULL
Thibault Saunier [Mon, 17 Jun 2019 22:23:43 +0000 (18:23 -0400)]
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.

5 years agonle: Parent the GstTask to ourself
Thibault Saunier [Mon, 17 Jun 2019 22:23:07 +0000 (18:23 -0400)]
nle: Parent the GstTask to ourself

This allows accessing the nlecomposition in gdb when a task is
'dangling' making debugging easier.

5 years agotests: Implement nested timelines tests
Swayamjeet [Tue, 11 Jun 2019 18:21:14 +0000 (23:51 +0530)]
tests: Implement nested timelines tests

5 years agonlecomposition: Properly set seqnum on flush events
Thibault Saunier [Mon, 17 Jun 2019 03:03:44 +0000 (23:03 -0400)]
nlecomposition: Properly set seqnum on flush events

5 years agotimeline: Drop ASYNC_/START/DONE messages
Thibault Saunier [Mon, 17 Jun 2019 03:00:31 +0000 (23:00 -0400)]
timeline: Drop ASYNC_/START/DONE messages

When we have nested timelines, we do not want those messages to pop
to the parent timelines as we handle the sequence ourself in the
timeline.

5 years agodemux: Create timeline from the streaming thread
Thibault Saunier [Sat, 15 Jun 2019 03:48:20 +0000 (23:48 -0400)]
demux: Create timeline from the streaming thread

First marshilling it to the main thread is dangerous as it is a blocking
operation and it should never happen there.

The asset cache is MT safe now so it is possible to load the timeline
from that thread directly

5 years agouri-asset: Implement multi threading support
Thibault Saunier [Mon, 17 Jun 2019 01:27:47 +0000 (21:27 -0400)]
uri-asset: Implement multi threading support

Making sure to have 1 GstDiscoverer per thread.

Use that new feature in gesdemux by loading the timeline directly from
the streaming thread. Modifying the timeline is not supported allowed
anyway.

5 years agonle: Add a seeking test for nested composition
Thibault Saunier [Sun, 9 Jun 2019 23:35:21 +0000 (19:35 -0400)]
nle: Add a seeking test for nested composition

5 years agoUse the new GstDiscoverer caching feature
Thibault Saunier [Fri, 7 Jun 2019 20:12:26 +0000 (16:12 -0400)]
Use the new GstDiscoverer caching feature

5 years agotimeline: Do not post upstream translated composition update messages
Thibault Saunier [Fri, 7 Jun 2019 20:06:39 +0000 (16:06 -0400)]
timeline: Do not post upstream translated composition update messages

In the case of nested timeline in the toplevel timeline we ended up
with CompositionUpdate for seeks sent by our own composition to
granchildren composition. This was not causing essential issues
if all tracks where containing nested timelines but in cases
where one of the tracks only had a nested timelines, then we
were waiting forever for a `CompositionUpdateDone`.

CompositionUpdate translated into ASYNC_START/ASYNC_DONE should
be kept inside the GESTimeline and not travel up (possibly to some
parent GESTimeline).

5 years agostructured-interface: Handle track-types in clip addition
Thibault Saunier [Fri, 7 Jun 2019 13:10:53 +0000 (09:10 -0400)]
structured-interface: Handle track-types in clip addition

The field was already expected in the launcher

5 years agoImplement and use the GstStream API
Thibault Saunier [Fri, 7 Jun 2019 03:19:38 +0000 (23:19 -0400)]
Implement and use the GstStream API

5 years agotimeline: Create stable stream IDs
Thibault Saunier [Thu, 6 Jun 2019 21:21:01 +0000 (17:21 -0400)]
timeline: Create stable stream IDs

5 years agodocs: Generate ges plugin doc
Thibault Saunier [Thu, 6 Jun 2019 19:40:57 +0000 (15:40 -0400)]
docs: Generate ges plugin doc

5 years agoplugins:ges: Factor out a GESBaseBin class
Thibault Saunier [Thu, 6 Jun 2019 17:51:45 +0000 (13:51 -0400)]
plugins:ges: Factor out a GESBaseBin class

And use it in both gesdemux and gessrc

5 years agogesdemux: Emit no-more-pad as required
Thibault Saunier [Thu, 6 Jun 2019 17:02:33 +0000 (13:02 -0400)]
gesdemux: Emit no-more-pad as required

5 years agonlecomposition: Respect seek seqnum in output EOS/SEGMENT
Thibault Saunier [Thu, 6 Jun 2019 16:46:08 +0000 (12:46 -0400)]
nlecomposition: Respect seek seqnum in output EOS/SEGMENT

Allowing a proper seek EOS handling with nested compositions

5 years agogesdemux: Properly combine flows
Thibault Saunier [Thu, 6 Jun 2019 15:26:45 +0000 (11:26 -0400)]
gesdemux: Properly combine flows

5 years agoplugin: Make use of G_DECLARE
Thibault Saunier [Thu, 6 Jun 2019 14:16:50 +0000 (10:16 -0400)]
plugin: Make use of G_DECLARE

And remove useless .h files

5 years agoxml-formatter: Plug some leaks
Thibault Saunier [Sun, 16 Jun 2019 15:09:46 +0000 (11:09 -0400)]
xml-formatter: Plug some leaks

5 years agoxml-formatter: Refactor the way we handle loading state
Thibault Saunier [Sat, 15 Jun 2019 20:44:50 +0000 (16:44 -0400)]
xml-formatter: Refactor the way we handle loading state

5 years agoxml-formatter: Cleanup removing all now useless pending fields
Thibault Saunier [Sat, 15 Jun 2019 19:11:38 +0000 (15:11 -0400)]
xml-formatter: Cleanup removing all now useless pending fields

5 years agoxml-formatter: Load assets before their proxies
Thibault Saunier [Sat, 23 Jun 2018 15:26:03 +0000 (11:26 -0400)]
xml-formatter: Load assets before their proxies

Paving the way to removing pending fields to make the code
simpler to follow.

5 years agoassets: Recurse in the chain of proxies
Thibault Saunier [Sat, 15 Jun 2019 05:33:49 +0000 (01:33 -0400)]
assets: Recurse in the chain of proxies

When linking loaded proxies and trying to setup their targets

5 years agodocs: Add gstges plugin
Thibault Saunier [Thu, 6 Jun 2019 13:48:32 +0000 (09:48 -0400)]
docs: Add gstges plugin

5 years agovalidate: Add action type to copy/paste clips
Thibault Saunier [Sun, 26 May 2019 13:55:03 +0000 (09:55 -0400)]
validate: Add action type to copy/paste clips

5 years agocontainer: Handle children pasting failures
Thibault Saunier [Sun, 26 May 2019 00:20:07 +0000 (20:20 -0400)]
container: Handle children pasting failures

5 years agoclip: Fix layer managament when copying a clip that was pasted
Thibault Saunier [Sat, 25 May 2019 22:51:08 +0000 (18:51 -0400)]
clip: Fix layer managament when copying a clip that was pasted

5 years agoelement: Properly handle the fact that pasting can return NULL
Thibault Saunier [Sat, 25 May 2019 20:05:00 +0000 (16:05 -0400)]
element: Properly handle the fact that pasting can return NULL

And fix paste annotation

5 years agomeson: Bump minimal GLib version to 2.44
Niels De Graef [Fri, 31 May 2019 21:13:48 +0000 (23:13 +0200)]
meson: Bump minimal GLib version to 2.44

This means we can use some newer features and get rid of some
boilerplate code using the G_DECLARE_* macros.

As discussed on IRC, 2.44 is old enough by now to start depending on it.

5 years agodoc: remove xml from comments
Mathieu Duponchelle [Wed, 29 May 2019 21:12:11 +0000 (23:12 +0200)]
doc: remove xml from comments

5 years agovideo-transition: When using non crossfade effect use 'over' operations
Thibault Saunier [Fri, 17 May 2019 23:54:51 +0000 (19:54 -0400)]
video-transition: When using non crossfade effect use 'over' operations

For smptealph element to work as expected the following compositing
element should mix with the default "over" operator, as described
in its documentation.

5 years agolauncher: Remove duplicated track types option
Thibault Saunier [Thu, 23 May 2019 22:43:06 +0000 (18:43 -0400)]
launcher: Remove duplicated track types option

5 years agodocs: Minor documentation fixes
Thibault Saunier [Thu, 23 May 2019 22:42:34 +0000 (18:42 -0400)]
docs: Minor documentation fixes

5 years agooverrides: Make sure overrides are in hierarchy order
Thibault Saunier [Thu, 23 May 2019 21:20:56 +0000 (17:20 -0400)]
overrides: Make sure overrides are in hierarchy order

Otherwise method order resolution will not be correct

5 years agoges: Minor reorganisation of timeline-element.c
Thibault Saunier [Thu, 24 Jan 2019 22:39:48 +0000 (19:39 -0300)]
ges: Minor reorganisation of timeline-element.c

5 years agoges: Cleanup timeline-element.h indentation
Thibault Saunier [Thu, 24 Jan 2019 11:43:00 +0000 (08:43 -0300)]
ges: Cleanup timeline-element.h indentation

5 years agoproject: Add a signal to notify when a new timeline is starting to load
Thibault Saunier [Wed, 1 May 2019 22:20:42 +0000 (18:20 -0400)]
project: Add a signal to notify when a new timeline is starting to load

5 years agotools: Initialize GStreamer before parsin options
Thibault Saunier [Thu, 23 May 2019 20:58:25 +0000 (16:58 -0400)]
tools: Initialize GStreamer before parsin options

We need it to be initialized to be able to parse our options

5 years agotools: Use a proper implementation of get_flags_from_string
Thibault Saunier [Wed, 1 May 2019 21:28:26 +0000 (17:28 -0400)]
tools: Use a proper implementation of get_flags_from_string

5 years agotests: Simply include ges-internal.h instead of redefining the same macros
Thibault Saunier [Wed, 1 May 2019 21:26:51 +0000 (17:26 -0400)]
tests: Simply include ges-internal.h instead of redefining the same macros

5 years agodocs: Stop building the doc cache by default
Thibault Saunier [Thu, 16 May 2019 13:07:03 +0000 (09:07 -0400)]
docs: Stop building the doc cache by default

And update the cache

Fixes https://gitlab.freedesktop.org/gstreamer/gst-docs/issues/36

5 years agotimeline-element: Mark edit() as Since: 1.18
Sebastian Dröge [Thu, 16 May 2019 12:09:51 +0000 (15:09 +0300)]
timeline-element: Mark edit() as Since: 1.18

5 years agoges: Sprinkle around some Since: 1.16 markers
Sebastian Dröge [Thu, 16 May 2019 12:06:14 +0000 (15:06 +0300)]
ges: Sprinkle around some Since: 1.16 markers

5 years agoges: Deprecate ges_play_sink_convert_frame
Thibault Saunier [Wed, 1 May 2019 17:19:42 +0000 (13:19 -0400)]
ges: Deprecate ges_play_sink_convert_frame

It has nothing to do in our namespace/API

5 years agoMore porting to markdown
Thibault Saunier [Wed, 1 May 2019 16:56:44 +0000 (12:56 -0400)]
More porting to markdown

5 years agotitle-clip: Enhance documentation
Thibault Saunier [Wed, 1 May 2019 15:53:07 +0000 (11:53 -0400)]
title-clip: Enhance documentation

5 years agodoc: Build documentation with hotdoc
Thibault Saunier [Mon, 22 Oct 2018 06:22:52 +0000 (08:22 +0200)]
doc: Build documentation with hotdoc

5 years agodocs: Minor fixes
Thibault Saunier [Mon, 22 Oct 2018 09:39:03 +0000 (11:39 +0200)]
docs: Minor fixes

5 years agodoc: ges-track: Add ges_track_set_create_element_for_gap_func
Nicolas Dufresne [Tue, 7 May 2019 17:33:09 +0000 (13:33 -0400)]
doc: ges-track: Add ges_track_set_create_element_for_gap_func

5 years agolaunch: Fix caps restriction short names
Thibault Saunier [Sun, 5 May 2019 15:38:28 +0000 (11:38 -0400)]
launch: Fix caps restriction short names

5 years agopython: Avoid warning about using deprecated methods
Thibault Saunier [Sat, 4 May 2019 14:47:07 +0000 (10:47 -0400)]
python: Avoid warning about using deprecated methods

Fixes https://gitlab.freedesktop.org/gstreamer/gst-editing-services/issues/69

5 years agoelement: Make return value of setters mean something
Thibault Saunier [Thu, 2 May 2019 15:41:10 +0000 (11:41 -0400)]
element: Make return value of setters mean something

Setters return values should return %FALSE **only** when the value
could not be set, not when unchanged or when the subclass handled
it itself!

This patches makes it so the return value is meaningul by allowing
subclasses return anything different than `TRUE` or `FALSE` (convention
is -1) to let the subclass now that it took care of everything and
no signal should be emited.

5 years agoges: Move `ges_container_edit` to GESTimelineElement
Thibault Saunier [Wed, 1 May 2019 16:09:45 +0000 (12:09 -0400)]
ges: Move `ges_container_edit` to GESTimelineElement

Now that the notion of layer has been moved down to #GESTimelineElement
(through the new #ges_timeline_element_get_layer_priority method), this
method make much more sense directly in the base class.

5 years agomeson: Generate a pkgconfig file for the GES plugin
Nirbheek Chauhan [Fri, 19 Apr 2019 20:06:10 +0000 (01:36 +0530)]
meson: Generate a pkgconfig file for the GES plugin

This was missing due to a typo.

5 years agoBack to development
Tim-Philipp Müller [Fri, 19 Apr 2019 09:41:39 +0000 (10:41 +0100)]
Back to development

5 years agoRelease 1.16.0
Tim-Philipp Müller [Thu, 18 Apr 2019 23:35:57 +0000 (00:35 +0100)]
Release 1.16.0

5 years agoasset: Avoid unrefing a task we do not own
Thibault Saunier [Thu, 18 Apr 2019 20:44:31 +0000 (16:44 -0400)]
asset: Avoid unrefing a task we do not own

5 years agoclip: Optimize set_top_effect_index by checking parent sooner
Alexandru Băluț [Wed, 17 Apr 2019 21:53:14 +0000 (23:53 +0200)]
clip: Optimize set_top_effect_index by checking parent sooner

5 years agoclip: Return TRUE when the the effect index does not change
Alexandru Băluț [Wed, 17 Apr 2019 21:51:13 +0000 (23:51 +0200)]
clip: Return TRUE when the the effect index does not change

5 years agoclip: Remove obsolete FIXME
Alexandru Băluț [Sat, 13 Apr 2019 18:03:52 +0000 (20:03 +0200)]
clip: Remove obsolete FIXME

5 years agocontainer: Call _remove_child when cannot set parent
Alexandru Băluț [Thu, 11 Apr 2019 21:58:48 +0000 (23:58 +0200)]
container: Call _remove_child when cannot set parent

ges_container_add removes the child being added if the call to
ges_timeline_element_set_parent fails. In this case, subclasses should
be given the chance to revert the effects of the add_child vmethod which
has just been called.

5 years agoges: Remove unused nb_effects field
Alexandru Băluț [Thu, 11 Apr 2019 21:45:13 +0000 (23:45 +0200)]
ges: Remove unused nb_effects field

5 years agotrack: Avoid various sorting operations before timeline commit
Mart Raudsepp [Fri, 12 Apr 2019 14:30:14 +0000 (17:30 +0300)]
track: Avoid various sorting operations before timeline commit

These are showing up in performance profile of 1000+ clips looped addition.
All this is done at commit time as well, so let that do only one update and
sorting.

5 years agoasset: Do not take an extra ref on asset when already initialized
Thibault Saunier [Mon, 15 Apr 2019 21:03:49 +0000 (17:03 -0400)]
asset: Do not take an extra ref on asset when already initialized

The task already has a ref so this one doesn't make sense and leads to leaks

5 years agoxml-formatter: Fix some asset leaks
Thibault Saunier [Fri, 12 Apr 2019 22:31:07 +0000 (18:31 -0400)]
xml-formatter: Fix some asset leaks

5 years agotests: Plug misc leaks
Thibault Saunier [Tue, 9 Apr 2019 12:58:24 +0000 (08:58 -0400)]
tests: Plug misc leaks

5 years agoframepositioner: Plug caps leak
Thibault Saunier [Tue, 9 Apr 2019 12:56:49 +0000 (08:56 -0400)]
framepositioner: Plug caps leak

5 years agoxml-formatter: Plug some leaks
Thibault Saunier [Tue, 9 Apr 2019 12:56:08 +0000 (08:56 -0400)]
xml-formatter: Plug some leaks

5 years agotimeline: Plug leak of the auto transition asset
Thibault Saunier [Mon, 8 Apr 2019 20:25:59 +0000 (16:25 -0400)]
timeline: Plug leak of the auto transition asset

5 years agotree: Plug a GList leak
Thibault Saunier [Mon, 8 Apr 2019 20:25:44 +0000 (16:25 -0400)]
tree: Plug a GList leak

5 years agopipeline: Plug pad leak
Thibault Saunier [Mon, 8 Apr 2019 20:25:29 +0000 (16:25 -0400)]
pipeline: Plug pad leak

5 years agotitle: Deprecate method that return newly allocated `const gchar*`
Thibault Saunier [Mon, 8 Apr 2019 20:23:18 +0000 (16:23 -0400)]
title: Deprecate method that return newly allocated `const gchar*`

This is just plain broken 190643508f14a64e36f085a69de819505e79dadb
but we can't do anything about it.

5 years agoPlug some GError leaks when loading assets
Thibault Saunier [Fri, 5 Apr 2019 14:24:39 +0000 (11:24 -0300)]
Plug some GError leaks when loading assets

5 years agoxml-formatter: Free pending clips on disposal
Thibault Saunier [Mon, 1 Apr 2019 14:52:43 +0000 (11:52 -0300)]
xml-formatter: Free pending clips on disposal

5 years agoasset: Plug a GError leak
Thibault Saunier [Thu, 28 Mar 2019 16:51:36 +0000 (13:51 -0300)]
asset: Plug a GError leak

5 years agotests: Avoid random timeout and let the launcher set it up for us
Thibault Saunier [Thu, 28 Mar 2019 16:08:55 +0000 (13:08 -0300)]
tests: Avoid random timeout and let the launcher set it up for us

5 years agoasset: s/unsure/ensure
Thibault Saunier [Thu, 28 Mar 2019 16:08:01 +0000 (13:08 -0300)]
asset: s/unsure/ensure

5 years agoasset: Plug a leak of EncodingProfiles
Thibault Saunier [Thu, 28 Mar 2019 16:06:37 +0000 (13:06 -0300)]
asset: Plug a leak of EncodingProfiles

5 years agoxml-formatter: Plug leaks of pending groups
Thibault Saunier [Thu, 28 Mar 2019 16:06:16 +0000 (13:06 -0300)]
xml-formatter: Plug leaks of pending groups

5 years agoasset: plug a GTask leak
Thibault Saunier [Thu, 28 Mar 2019 16:05:45 +0000 (13:05 -0300)]
asset: plug a GTask leak

5 years agoFix splitting control bindings leaks
Thibault Saunier [Thu, 28 Mar 2019 14:29:05 +0000 (11:29 -0300)]
Fix splitting control bindings leaks

5 years agotests: Fix a leak in the 'asset' test
Thibault Saunier [Thu, 28 Mar 2019 14:09:13 +0000 (11:09 -0300)]
tests: Fix a leak in the 'asset' test

5 years agotree: Fixup some GList leaks
Thibault Saunier [Thu, 28 Mar 2019 14:08:58 +0000 (11:08 -0300)]
tree: Fixup some GList leaks

5 years agouri-asset: Ensure that the discoverer stops on deinit.
Yeongjin Jeong [Mon, 15 Apr 2019 09:37:58 +0000 (18:37 +0900)]
uri-asset: Ensure that the discoverer stops on deinit.

Discoverer maintain a referernce on the discoverer object while
the async timeout callback is alive to prevent a potential crash
if the object is freed while the callback is pending.

But if g_main_context is released before calling the timeout callback,
the discoverer pointer which was weak referenced from GESUriClipAssetClass
will not be disposed because the discoverer object is not finalized.

5 years agoRelease 1.15.90
Tim-Philipp Müller [Wed, 10 Apr 2019 23:37:00 +0000 (00:37 +0100)]
Release 1.15.90

5 years agog-i: pass --quiet to g-ir-scanner
Tim-Philipp Müller [Sat, 23 Mar 2019 19:21:31 +0000 (19:21 +0000)]
g-i: pass --quiet to g-ir-scanner

This suppresses the annoying 'g-ir-scanner: link: cc ..' output
that we get even if everything works just fine.

We still get g-ir-scanner warnings and compiler warnings if
we pass this option.

5 years agovideosource: Expose video-direction child property
Jakub Adam [Tue, 19 Mar 2019 15:39:20 +0000 (16:39 +0100)]
videosource: Expose video-direction child property

5 years agovideosource: auto-flip the image according to image-orientation tag
Jakub Adam [Fri, 15 Mar 2019 15:24:16 +0000 (16:24 +0100)]
videosource: auto-flip the image according to image-orientation tag

If there's image-orientation tag, make sure the image is correctly
oriented before we scale it.