platform/upstream/gstreamer.git
5 years agoUpdate git locations to gitlab
Matthew Waters [Mon, 5 Nov 2018 05:51:05 +0000 (05:51 +0000)]
Update git locations to gitlab

5 years agoTests: the sys.meta_path trick does not work for python2
Mathieu Duponchelle [Wed, 31 Oct 2018 16:02:24 +0000 (17:02 +0100)]
Tests: the sys.meta_path trick does not work for python2

Instead, for python2 revert to manipulating gi.overrides.__path__

5 years agoTests: refactor testing approach
Mathieu Duponchelle [Tue, 30 Oct 2018 23:41:31 +0000 (00:41 +0100)]
Tests: refactor testing approach

Instead of fiddling with sys.path, we instead use a custom
sys.meta_path importer

5 years agomeson: address python module port comments
Mathieu Duponchelle [Sun, 28 Oct 2018 16:52:33 +0000 (17:52 +0100)]
meson: address python module port comments

5 years agomeson: use new python module
Havard Graff [Mon, 14 May 2018 08:05:15 +0000 (10:05 +0200)]
meson: use new python module

This patch makes the tests pass running uninstalled and installed, with
python2 and python3 on linux, windows and osx.

The main gist is to use the new python-module to do the lifting done
by pythondetector, and with that add support for python2 and windows.

5 years agoautomake: remove __init__.py's
Mathieu Duponchelle [Sun, 28 Oct 2018 16:51:44 +0000 (17:51 +0100)]
automake: remove __init__.py's

5 years agoRemove __init__.py files
Mathieu Duponchelle [Sun, 28 Oct 2018 13:14:09 +0000 (14:14 +0100)]
Remove __init__.py files

They were not installed, and were simply used for our
uninstalled setup, which we now implement differently.

5 years agomeson: add pygobject fallback
Mathieu Duponchelle [Sat, 27 Oct 2018 16:04:11 +0000 (18:04 +0200)]
meson: add pygobject fallback

5 years agoExamples: add audiotestsrc plugin example
Mathieu Duponchelle [Sun, 29 Jul 2018 18:06:09 +0000 (20:06 +0200)]
Examples: add audiotestsrc plugin example

5 years agoExamples: add audioplot plugin example
Mathieu Duponchelle [Sun, 29 Jul 2018 18:00:43 +0000 (20:00 +0200)]
Examples: add audioplot plugin example

5 years agoExamples: add mixer plugin example
Mathieu Duponchelle [Sun, 29 Jul 2018 17:51:34 +0000 (19:51 +0200)]
Examples: add mixer plugin example

5 years agoexamples: add a dynamic pipeline example
Mathieu Duponchelle [Fri, 20 Jul 2018 15:00:22 +0000 (17:00 +0200)]
examples: add a dynamic pipeline example

5 years agohelloworld: fix typo
Mathieu Duponchelle [Fri, 20 Jul 2018 13:58:35 +0000 (15:58 +0200)]
helloworld: fix typo

6 years agogstmodule: fix warning when building against python2
Havard Graff [Tue, 20 Mar 2018 07:54:24 +0000 (08:54 +0100)]
gstmodule: fix warning when building against python2

PyMapping_GetItemString’ discards ‘const’ qualifier from pointer target type

https://bugzilla.gnome.org/show_bug.cgi?id=796093

6 years agoFix distcheck
Tim-Philipp Müller [Tue, 1 May 2018 14:01:11 +0000 (15:01 +0100)]
Fix distcheck

6 years agomeson: drop config.h.meson template
Tim-Philipp Müller [Tue, 1 May 2018 11:08:54 +0000 (12:08 +0100)]
meson: drop config.h.meson template

6 years agoBump pygobject dependency to 3.8
Thibault Saunier [Wed, 25 Apr 2018 18:11:31 +0000 (15:11 -0300)]
Bump pygobject dependency to 3.8

6 years agooverrides: use get_introspection_module
Emilio Pozuelo Monfort [Wed, 25 Apr 2018 17:47:19 +0000 (19:47 +0200)]
overrides: use get_introspection_module

https://bugzilla.gnome.org/show_bug.cgi?id=795555

6 years agooverrides: Fix mixup between query function and chain one
Thibault Saunier [Sun, 8 Apr 2018 00:46:07 +0000 (21:46 -0300)]
overrides: Fix mixup between query function and chain one

6 years agoDist autogen.sh and configure.ac
Tim-Philipp Müller [Tue, 3 Apr 2018 12:28:16 +0000 (13:28 +0100)]
Dist autogen.sh and configure.ac

6 years agoBack to development
Tim-Philipp Müller [Tue, 20 Mar 2018 10:27:38 +0000 (10:27 +0000)]
Back to development

6 years agoRelease 1.14.0
Tim-Philipp Müller [Mon, 19 Mar 2018 20:29:28 +0000 (20:29 +0000)]
Release 1.14.0

6 years agoRelease 1.13.91
Tim-Philipp Müller [Tue, 13 Mar 2018 19:31:04 +0000 (19:31 +0000)]
Release 1.13.91

6 years agoRelease 1.13.90
Tim-Philipp Müller [Sat, 3 Mar 2018 22:55:56 +0000 (22:55 +0000)]
Release 1.13.90

6 years agoconfigure.ac: Don't use runtime location of overrides by default
Edward Hervey [Fri, 23 Feb 2018 13:40:37 +0000 (14:40 +0100)]
configure.ac: Don't use runtime location of overrides by default

If someone wants to put the overrides in a non-standard location,
they can use the --with-pygi-overrides-dir option.

The default is to put them in ${pyexecdir}/gi/overrides

Fixes make distcheck

https://bugzilla.gnome.org/show_bug.cgi?id=793756

6 years agomakefiles: Add missing dist files
Nicolas Dufresne [Sun, 18 Feb 2018 15:00:48 +0000 (10:00 -0500)]
makefiles: Add missing dist files

https://bugzilla.gnome.org/show_bug.cgi?id=793560

6 years agobitmask: Do not use long() directly with python3
Thibault Saunier [Thu, 22 Feb 2018 11:05:24 +0000 (08:05 -0300)]
bitmask: Do not use long() directly with python3

It doesn't exist anymore there

6 years agogi: Check Gst has not been initialized before loading bindings
Thibault Saunier [Mon, 25 Sep 2017 00:43:49 +0000 (21:43 -0300)]
gi: Check Gst has not been initialized before loading bindings

It can have been initialized by some C code (in a C app with plugins
for example).

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=788088

6 years agoAllow Bitmask to be created from ints and longs but always store as long
Sebastian Dröge [Thu, 22 Feb 2018 09:58:48 +0000 (10:58 +0100)]
Allow Bitmask to be created from ints and longs but always store as long

We need a 64 bit integer, and previously the test failed because it was
already created from longs in various cases (e.g. when reading from a
GstStructure).

6 years agoBack to development
Tim-Philipp Müller [Thu, 15 Feb 2018 19:44:33 +0000 (19:44 +0000)]
Back to development

6 years agooverrides: accept Gst.Structure in Caps.__new__
Mathieu Duponchelle [Thu, 15 Feb 2018 19:08:38 +0000 (20:08 +0100)]
overrides: accept Gst.Structure in Caps.__new__

Also rename misleading parameter (*kwargs -> *args)

https://bugzilla.gnome.org/show_bug.cgi?id=793493

6 years agoRelease 1.13.1
Tim-Philipp Müller [Thu, 15 Feb 2018 17:24:36 +0000 (17:24 +0000)]
Release 1.13.1

6 years agoPrint Python version after initialization
Sebastian Dröge [Wed, 14 Feb 2018 08:13:36 +0000 (10:13 +0200)]
Print Python version after initialization

6 years agopluginloader: Print Python library path that is tried to be loaded
Sebastian Dröge [Wed, 14 Feb 2018 08:10:39 +0000 (10:10 +0200)]
pluginloader: Print Python library path that is tried to be loaded

6 years agoShip meson build system in autotools generated tarballs
Sebastian Dröge [Tue, 23 Jan 2018 17:32:18 +0000 (19:32 +0200)]
Ship meson build system in autotools generated tarballs

6 years agomeson: Fix detection of overrides path in some cases
Thibault Saunier [Tue, 1 Aug 2017 13:57:57 +0000 (09:57 -0400)]
meson: Fix detection of overrides path in some cases

6 years agoplugin: Always initialize GIL state
Thibault Saunier [Sun, 30 Jul 2017 03:05:22 +0000 (23:05 -0400)]
plugin: Always initialize GIL state

gcc warns about possibly unintialized use of it

(even if it can't actually happen)

6 years agoFix simply running testsuite in meson
Thibault Saunier [Tue, 25 Jul 2017 20:18:26 +0000 (16:18 -0400)]
Fix simply running testsuite in meson

- Make sure to never have root folder in sys.path when running meson,
  as pythondetector won't be able to access gi._overridesdir

- Generate a mesonconfig.py file that will be used by the testsuite to
  know where meson generated files, making `python -m unittest` working.

6 years agoAdd support for Gst.Bitmask
Thibault Saunier [Tue, 25 Jul 2017 20:17:54 +0000 (16:17 -0400)]
Add support for Gst.Bitmask

6 years agotests: Stop using deprecated assertion methods
Thibault Saunier [Tue, 25 Jul 2017 18:35:01 +0000 (14:35 -0400)]
tests: Stop using deprecated assertion methods

6 years agotests: Move all Fundamental types tests in a file
Thibault Saunier [Tue, 25 Jul 2017 18:29:19 +0000 (14:29 -0400)]
tests: Move all Fundamental types tests in a file

No reason to have one file per type and it makes it more complicated
to handle.

6 years agostructure: Add a .keys() method and implement __str__
Thibault Saunier [Tue, 25 Jul 2017 17:00:08 +0000 (13:00 -0400)]
structure: Add a .keys() method and implement __str__

We are making it behave like a dict, so we should provide the
same kind of utilities.

6 years agoReturn a Gst.*Range instead of a python range converting from GValue to python
Thibault Saunier [Mon, 24 Jul 2017 21:06:06 +0000 (17:06 -0400)]
Return a Gst.*Range instead of a python range converting from GValue to python

Otherwise we lose the information about what type of range it is, which
is mandatory, especially when dealing with Structure and Caps.

6 years agostructures: Override __new__ to make it more pythonic
Thibault Saunier [Mon, 24 Jul 2017 16:13:13 +0000 (12:13 -0400)]
structures: Override __new__ to make it more pythonic

7 years agooverrides: Remove IntRange And Int64Range on Python2
Olivier Crête [Sun, 21 May 2017 16:06:25 +0000 (18:06 +0200)]
overrides: Remove IntRange And Int64Range on Python2

They use the range() built-in type which is a Python 3 change.

https://bugzilla.gnome.org/show_bug.cgi?id=782927

7 years agopythonplugin: Rename plugin file to match plugin name
Olivier Crête [Sun, 21 May 2017 11:16:02 +0000 (13:16 +0200)]
pythonplugin: Rename plugin file to match plugin name

This is required by the new loader macro.

7 years agoBack to development
Sebastian Dröge [Thu, 4 May 2017 16:00:37 +0000 (19:00 +0300)]
Back to development

7 years agoRelease 1.12.0
Sebastian Dröge [Thu, 4 May 2017 12:40:29 +0000 (15:40 +0300)]
Release 1.12.0

7 years agoRelease 1.11.91
Sebastian Dröge [Thu, 27 Apr 2017 14:37:36 +0000 (17:37 +0300)]
Release 1.11.91

7 years agoRelease 1.11.90
Sebastian Dröge [Fri, 7 Apr 2017 13:35:42 +0000 (16:35 +0300)]
Release 1.11.90

7 years agoarray/list: Make gvalue conversion symmetric
Nicolas Dufresne [Mon, 27 Mar 2017 18:59:24 +0000 (14:59 -0400)]
array/list: Make gvalue conversion symmetric

This is needed to support matrix. Otherwise, getting
a matrix would remove the rows envelopess, which would
make the "cast" fails, since it would not know if the
internal rows are ValueArray or ValueList. I think reading,
modifying and setting back the matrix is an important use
case.

7 years agogstmodule: Factor out gst type creation
Nicolas Dufresne [Mon, 27 Mar 2017 18:52:24 +0000 (14:52 -0400)]
gstmodule: Factor out gst type creation

This reduces a lot the boiler plate all over. At the same
time, use N instead of O when passing PyObject to fix
the objects leaks.

7 years agoAdd /build and install to the gitignore
Nicolas Dufresne [Fri, 24 Mar 2017 17:28:35 +0000 (13:28 -0400)]
Add /build and install to the gitignore

7 years agooverrides: Add more GstValue overrides
Nicolas Dufresne [Thu, 23 Mar 2017 16:21:32 +0000 (12:21 -0400)]
overrides: Add more GstValue overrides

This patch adds overrides to support IntRange, Int64Range, DoubleRange,
FractionRange, Array and List. For integer ranges, it maps this
to python 'range'. Gst.IntRange() and Gst.Int64Range() are simple cast
to let the underlying code know which GType to use. To set such range in
python you will do:

  structure["range"] = Gst.IntRange(range(0,10,2)))

Same for the 64 bit variant. And when you do:

  r = structure.get_value("range")

A range will be returned directly, without the wrapper. For DoubleRange
and FractionRange, there is no native support in python. So the usage
will be:

  structure["range"] = Gst.DoubleRange(0,10.0)
  structure["range"] =
      Gst.FractionRange(Gst.Fraction(1/30), Gst.Fraction(1/5)

When getting this value, Gst.DoubleRange and Gst.FractionRange class are
returned. They both have start/stop members. The naming was taken from
range type.

For Array and List, both uses the native list type, though they can be
constructed from any python sequence. So again, the class is just like
a cast, to let it pick the right GType and python list are being
returned.

  structure["list"] = Gst.ValueList([1,2,3,4])
  structure["array"] = Gst.ValueArray([1,2,3,4)

Using string and tuple could also work. Since Gst.ValueList/Array are
sequence, you can convert one to the other with:

  list = Gst.ValueList([1,2,3,4])
  array = Gst.ValueArray (list)

https://bugzilla.gnome.org/show_bug.cgi?id=753754

7 years agomeson: Install in gi._overidesdir only if we are installing in right prefix
Thibault Saunier [Thu, 23 Mar 2017 15:09:05 +0000 (12:09 -0300)]
meson: Install in gi._overidesdir only if we are installing in right prefix

And make sure python detector did not fail

https://bugzilla.gnome.org/show_bug.cgi?id=780369

7 years agomeson: Update version
Sebastian Dröge [Fri, 24 Feb 2017 14:01:39 +0000 (16:01 +0200)]
meson: Update version

7 years agoBack to development
Sebastian Dröge [Fri, 24 Feb 2017 13:38:09 +0000 (15:38 +0200)]
Back to development

7 years agoRelease 1.11.2
Sebastian Dröge [Fri, 24 Feb 2017 13:09:54 +0000 (15:09 +0200)]
Release 1.11.2

7 years agoBack to development
Sebastian Dröge [Fri, 24 Feb 2017 10:08:48 +0000 (12:08 +0200)]
Back to development

7 years agoPort old helloworld.py example to GI
Jan Schmidt [Tue, 21 Feb 2017 11:02:14 +0000 (22:02 +1100)]
Port old helloworld.py example to GI

7 years agopython: Add an option to set where to install pygi overrides
Thibault Saunier [Wed, 15 Feb 2017 13:48:58 +0000 (10:48 -0300)]
python: Add an option to set where to install pygi overrides

7 years agomeson: bump version and bump meson requirement
Tim-Philipp Müller [Fri, 13 Jan 2017 12:51:11 +0000 (12:51 +0000)]
meson: bump version and bump meson requirement

Adjust meson requirement to same as used in other modules.

7 years agoRelease 1.11.1
Sebastian Dröge [Thu, 12 Jan 2017 14:15:50 +0000 (16:15 +0200)]
Release 1.11.1

7 years agoRemove bitrotten and unused gst-python.spec.in file
Tim-Philipp Müller [Fri, 16 Dec 2016 17:43:11 +0000 (17:43 +0000)]
Remove bitrotten and unused gst-python.spec.in file

7 years agocommon: use https protocol for common submodule
Tim-Philipp Müller [Sat, 26 Nov 2016 11:28:30 +0000 (11:28 +0000)]
common: use https protocol for common submodule

https://bugzilla.gnome.org/show_bug.cgi?id=775110

7 years agoPlay nicely with gst-build uninstalled
Thibault Saunier [Thu, 3 Nov 2016 14:49:15 +0000 (11:49 -0300)]
Play nicely with gst-build uninstalled

As overrides_hack is being used as user sitecustomize script

7 years agomeson: Add testsuite
Thibault Saunier [Thu, 3 Nov 2016 11:36:23 +0000 (08:36 -0300)]
meson: Add testsuite

7 years agomeson: update version
Tim-Philipp Müller [Tue, 1 Nov 2016 18:12:33 +0000 (18:12 +0000)]
meson: update version

7 years agoBack to development
Sebastian Dröge [Tue, 1 Nov 2016 16:53:15 +0000 (18:53 +0200)]
Back to development

7 years agoRelease 1.10.0
Sebastian Dröge [Tue, 1 Nov 2016 16:06:58 +0000 (18:06 +0200)]
Release 1.10.0

7 years agomeson: use the version keyword argument for dependencies version
Thibault Saunier [Wed, 19 Oct 2016 17:47:01 +0000 (14:47 -0300)]
meson: use the version keyword argument for dependencies version

7 years agoexamples: Added identity example
Marianna Smidth Buschle [Mon, 17 Oct 2016 07:37:30 +0000 (09:37 +0200)]
examples: Added identity example

Created a simple BaseTransform element (identity)

https://bugzilla.gnome.org/show_bug.cgi?id=772853

7 years agomeson: Setup pre-commit hooks when configuring
Thibault Saunier [Fri, 30 Sep 2016 14:35:42 +0000 (11:35 -0300)]
meson: Setup pre-commit hooks when configuring

7 years agoRelease 1.9.90
Sebastian Dröge [Fri, 30 Sep 2016 10:04:26 +0000 (13:04 +0300)]
Release 1.9.90

7 years agomeson: Add a workaround for finding the Python library on Fedora
Sebastian Dröge [Wed, 14 Sep 2016 13:18:17 +0000 (15:18 +0200)]
meson: Add a workaround for finding the Python library on Fedora

7 years agomeson: Fix pythondetector on Debian and use sysconfig for getting the ABIFLAGS too
Sebastian Dröge [Wed, 14 Sep 2016 09:42:54 +0000 (11:42 +0200)]
meson: Fix pythondetector on Debian and use sysconfig for getting the ABIFLAGS too

Paths like /usr/lib/python3.5/config-3.5m-x86_64-linux-gnu would not be
detected by the old code, but it's all nicely stored in sysconfig so
let's just use that.

7 years agoconfigure: Depend on gstreamer 1.9.2.1
Sebastian Dröge [Wed, 14 Sep 2016 09:31:32 +0000 (11:31 +0200)]
configure: Depend on gstreamer 1.9.2.1

7 years agomeson: Search python shared lib in lib64/ if it is a directory
Thibault Saunier [Tue, 13 Sep 2016 18:17:41 +0000 (15:17 -0300)]
meson: Search python shared lib in lib64/ if it is a directory

7 years agobuild: Remove unused variables
Thibault Saunier [Mon, 5 Sep 2016 15:52:46 +0000 (12:52 -0300)]
build: Remove unused variables

7 years agoAdd support for Meson as alternative/parallel build system
Thibault Saunier [Mon, 5 Sep 2016 14:30:43 +0000 (11:30 -0300)]
Add support for Meson as alternative/parallel build system

    https://github.com/mesonbuild/meson

7 years agoBack to development
Sebastian Dröge [Thu, 1 Sep 2016 09:31:53 +0000 (12:31 +0300)]
Back to development

7 years agoRelease 1.9.2
Sebastian Dröge [Thu, 1 Sep 2016 09:31:42 +0000 (12:31 +0300)]
Release 1.9.2

7 years agoBack to development
Sebastian Dröge [Wed, 6 Jul 2016 10:54:19 +0000 (13:54 +0300)]
Back to development

7 years agoRelease 1.9.1
Sebastian Dröge [Wed, 6 Jul 2016 10:38:12 +0000 (13:38 +0300)]
Release 1.9.1

8 years agoBack to development
Sebastian Dröge [Thu, 24 Mar 2016 11:34:28 +0000 (13:34 +0200)]
Back to development

8 years agoRelease 1.8.0
Sebastian Dröge [Thu, 24 Mar 2016 11:03:02 +0000 (13:03 +0200)]
Release 1.8.0

8 years agoRelease 1.7.91
Sebastian Dröge [Tue, 15 Mar 2016 10:34:35 +0000 (12:34 +0200)]
Release 1.7.91

8 years agoRelease 1.7.90
Sebastian Dröge [Tue, 1 Mar 2016 16:53:59 +0000 (18:53 +0200)]
Release 1.7.90

8 years agoNULL-terminate PyMethodDef array
Hanno Boeck [Sat, 27 Feb 2016 11:16:00 +0000 (11:16 +0000)]
NULL-terminate PyMethodDef array

PyMethodDef arrays are supposed to end with an entry full of NULL/0 values.
This is missing in gst-python in the file gstmodule.c.

This causes out of bounds memory reads which can be seen / tested by compiling
gst-python with address sanitizer (-fsanitize=address in CFLAGS/LDFLAGS).

https://bugzilla.gnome.org/show_bug.cgi?id=762766

8 years agowin32: remove outdated build cruft
Tim-Philipp Müller [Sun, 21 Feb 2016 10:46:24 +0000 (10:46 +0000)]
win32: remove outdated build cruft

This hasn't been touched for generations, doesn't work,
and is just causing confusion. We also don't want to
maintain these files manually.

8 years agoFix bug when checking template object type
Thibault Saunier [Fri, 19 Feb 2016 16:13:57 +0000 (17:13 +0100)]
Fix bug when checking template object type

8 years agoBack to development
Sebastian Dröge [Fri, 19 Feb 2016 10:38:49 +0000 (12:38 +0200)]
Back to development

8 years agoRelease 1.7.2
Sebastian Dröge [Fri, 19 Feb 2016 10:16:05 +0000 (12:16 +0200)]
Release 1.7.2

8 years agogst: Fix a crash when passing wrong type as __templates__
Thibault Saunier [Mon, 15 Feb 2016 22:26:06 +0000 (23:26 +0100)]
gst: Fix a crash when passing wrong type as __templates__

8 years agoAvoid warning about gi.require_version not being called
Thibault Saunier [Mon, 8 Feb 2016 10:30:08 +0000 (11:30 +0100)]
Avoid warning about gi.require_version not being called

8 years agoBack to development
Sebastian Dröge [Thu, 24 Dec 2015 14:30:00 +0000 (15:30 +0100)]
Back to development

8 years agoRelease 1.7.1
Sebastian Dröge [Thu, 24 Dec 2015 14:00:41 +0000 (15:00 +0100)]
Release 1.7.1

8 years agopython: Check return value of g_module_symbol()
Sebastian Dröge [Mon, 14 Dec 2015 12:03:24 +0000 (13:03 +0100)]
python: Check return value of g_module_symbol()

CID 1320702

8 years agopython: Don't call Py_DECREF() on NULL
Sebastian Dröge [Mon, 14 Dec 2015 12:01:25 +0000 (13:01 +0100)]
python: Don't call Py_DECREF() on NULL

CID 1320703

8 years agopythonplugin: Clean up error handling a bit
Sebastian Dröge [Mon, 16 Nov 2015 08:12:37 +0000 (10:12 +0200)]
pythonplugin: Clean up error handling a bit

Don't g_error() but only g_critical() when things go wrong and return FALSE.
g_error() would kill the application immediately.

Also check if we can actually get gi.repository.Gst before using it.