Commit graph

1459 commits

Author SHA1 Message Date
Tim-Philipp Müller
6580cad30e Release 1.19.2 2021-09-23 01:35:45 +01:00
Tim-Philipp Müller
f9eac69d54 Back to development 2021-06-01 15:29:12 +01:00
Tim-Philipp Müller
474c4bea13 Release 1.19.1 2021-06-01 00:16:12 +01:00
Stirling Westrup
f8165aee8d Fixed meson.build to correctly use libdir
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-python/-/merge_requests/45>
2021-05-11 17:14:41 -04:00
Stéphane Cerveau
7a0decbec2 gstreamer-full: plugin can be registered statically.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-python/-/merge_requests/43>
2020-11-12 11:10:44 +01:00
Andoni Morales Alastruey
2b5b0d951e macOS: Fix plugin link with Python 3.8
see: https://gitlab.freedesktop.org/gstreamer/gst-python/-/issues/28

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-python/-/merge_requests/42>
2020-10-08 12:56:10 +02:00
Tim-Philipp Müller
6396ebf8e0 ci: include template from gst-ci master branch again 2020-09-08 17:30:59 +01:00
Tim-Philipp Müller
20a5925c97 Back to development 2020-09-08 16:59:04 +01:00
Tim-Philipp Müller
a85f99e274 Release 1.18.0 2020-09-08 00:09:33 +01:00
Thibault Saunier
c6c4fc40b9 Fix distcheck by setting up overrides in plugin init
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-python/-/merge_requests/40>
2020-08-24 18:15:50 +00:00
Tim-Philipp Müller
98519897ca Release 1.17.90 2020-08-20 16:16:08 +01:00
Thibault Saunier
3c020d16f6 overrides: Fix buffer API break
When introducing zero copy buffers/memory mapping we broke the API,
this brings back the exact same API as before for all the previously
handled cases but still raises an exception when using a context
to map buffers.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-python/-/issues/40

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-python/-/merge_requests/39>
2020-08-14 22:08:02 -04:00
Jose Quaresma
a034db560c overrides: memory and buffer unmap code can be shared
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-python/-/merge_requests/35>
2020-07-23 19:42:17 +01:00
Jose Quaresma
e71f7739ab overrides: _remap: refactor to avoid memory leaks with PyObject
- unref PyObject on exit with Py_XDECREF
- better error handling
- free memory view in case of erros

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-python/-/merge_requests/34>
2020-07-10 17:50:57 +01:00
Jose Quaresma
b9d26cbf46 Gst.py: raise an error if we can't unmap the memory 2020-07-10 17:08:03 +01:00
Jose Quaresma
bea8e5c6ca Gst.py: unref __parent__ on unmap otherwise it cause a memory leak 2020-07-10 17:08:03 +01:00
Jose Quaresma
9a31b01486 overrides: fix memory leak in pyg_boxed_new
pyg_boxed_new cause a memory leak if it hold a copy of the boxed wrapper and freed when the wrapper is deallocated.
use the boxed wrapper value itself and don't hold a copy of the value.
2020-07-10 17:02:24 +01:00
Tim-Philipp Müller
4c3ffc78b7 Back to development 2020-07-03 02:04:10 +01:00
Tim-Philipp Müller
ae11b6cea4 Release 1.17.2 2020-07-03 00:36:19 +01:00
Tim-Philipp Müller
994f068f64 Back to development 2020-06-20 00:28:33 +01:00
Tim-Philipp Müller
03fc4a23fa Release 1.17.1 2020-06-19 19:26:52 +01:00
Thibault Saunier
db1cc4c6b2 Add an example to record audio 2020-04-03 20:34:01 +00:00
Andoni Morales Alastruey
f98c206bdf Fix configure python lib detection in macOS
pylib_loc = python.get_variable('LIBPL', '') alreay returns
the correct path for python's library dir
2020-04-03 18:42:14 +00:00
Mathieu Duponchelle
e1f7c22d70 gstmodule: Fix reference counts of Py_True and Py_False
When returning those values, extensions must take a new reference.

Fixes #33
2020-02-26 13:53:17 +01:00
Guillaume Desmottes
d37ca29515 testsuite: remove cleanup
It's no longer used.
2020-01-07 18:16:51 +05:30
Olivier Crête
bc3e5b1206 test: Add test for the plugin loader
Fix #8
2020-01-07 10:42:36 +05:30
Olivier Crête
adca3bf8f7 plugin: Also look at GST_PLUGIN_PATH_1_0 2020-01-07 10:42:36 +05:30
Thibault Saunier
efbce60285 Do not declare mix declaration and code 2019-12-30 16:53:32 +00:00
Sebastian Dröge
10707f437f Fix build with Python 3.8 by also checking for python-3.X-embed.pc
Since Python 3.8 the normal checks don't include the Python libraries
anymore and linking of the gst-python module would fail.

See also https://github.com/mesonbuild/meson/issues/5629

Fixes https://gitlab.freedesktop.org/gstreamer/gst-python/issues/28
2019-12-13 10:48:04 +02:00
Thibault Saunier
986d6d12fb example: Use do_fill in AudioTestSrc instead of do_create
With the new mapping API we can efficiently use the ->fill vmethod
which is sensibly better.
2019-12-11 08:32:44 -03:00
Thibault Saunier
d365954fc0 Subclass Exception for mapping and unmapping errors
And minor cleanup in the way errors are handled
2019-12-10 12:05:19 -03:00
Philipp Zabel
6d53d0ae0e tests: Add buffer map/unmap tests 2019-12-09 21:03:19 +01:00
Daniel Klamt
fecfe451a7 Changes the mapinfo so that the mapped data is writable
The Problem is, that in the current state it is not easily possible to
edit the buffer data in a gstreamer python element since you get a copy
of the real buffer.

This patch overrides the mapinfo and the function generating it in a way
so that mapinfo.data is now a memoryview pointing to the real buffer.
Depending on the flags given for this buffer the memoryview is r/w.
2019-12-09 09:23:55 +01:00
Thibault Saunier
91d05de9b9 python: Fix type type qualifiers issues 2019-11-28 10:47:07 -03:00
Thibault Saunier
95b2f64394 Remove python2 support
We have notified application developers this would happen a long time
ago and python2 is going to be deprecated very soon now, before 1.18
is going to be released.
2019-11-19 11:18:59 -03:00
Tim-Philipp Müller
acb2da66f5 Remove autotools build 2019-10-14 19:08:47 +01:00
Mathieu Duponchelle
c04bb945b0 overrides: fix callback setter overrides (bis)
The previous commit broke those by trying to pass weak refs
through pygobject, but we should probably have tested the elements
beyond instantiation: weakref.WeakMethod returns a callable, but
that callable when called only returns the ephemeral bound method,
which is the object we want to call, but pygobject has no support
for that.

Instead, fix the memory leaks we were going after by decoupling the
lifecycle of the callback and that of the pad, by passing functors
to pygobject.
2019-09-02 18:42:39 +02:00
Mathieu Duponchelle
34e0e3ce11 overrides: fix callback setter overrides
Use weakref to avoid leaks, and remove refcount hack as the actual
issue has been fixed in pygobject
2019-08-08 23:35:16 +00:00
Thibault Saunier
42a27817bc suppr: Add a supression on wrong jump in python from fedora 30 2019-08-08 10:58:06 -04:00
Mathieu Duponchelle
dae8210e0f meson: expose plugins variable 2019-05-26 16:20:08 +02:00
Thibault Saunier
6fcd2c835f override Element before Bin so we can access element fields of bins
And add a test

See https://gitlab.gnome.org/GNOME/pygobject/issues/325
2019-05-06 11:30:47 -04:00
Mathieu Duponchelle
2e91b713f1 Gst.py: add high-level helpers 2019-05-03 15:12:02 +00:00
Tim-Philipp Müller
6e51428cbd Back to development 2019-04-19 11:00:07 +01:00
Tim-Philipp Müller
7f1b5fe985 Release 1.16.0 2019-04-19 00:37:16 +01:00
Luis de Bethencourt
0bb109b5a6 Update TODO 2019-04-11 15:00:15 -04:00
Tim-Philipp Müller
996f54ac25 Release 1.15.90 2019-04-11 00:38:39 +01:00
Tim-Philipp Müller
30cc0fc83d Back to development 2019-03-04 09:15:26 +00:00
Tim-Philipp Müller
5a5eae51f9 Release 1.15.2 2019-02-26 12:00:59 +00:00
Thibault Saunier
96ecb22468 Gst.init() has to be called before GstPbutils is imported
This makes sure that we do not try to use GstPbutils before Gst is init
and in case GstPbutils is imported while Gst is not imported, use the
`GstPbutils.pb_utils_init()` function to have the oportunity to
initialize the overrides.

Not that we also introduce a `GstPbutils.init()` variant because
`GstPbutils.pb_utils_init()` is an ugly name.
2019-01-30 15:46:35 -03:00
Thibault Saunier
8e42b63201 meson: Re add workarounds to detect libpython path
This was removed all together in af4ade3743
"meson: use new python module".

And add `-Dlibpython-dir` option for the cases the logic fails.
2019-01-22 17:02:52 -03:00