Commit graph

30 commits

Author SHA1 Message Date
Thibault Saunier 24c6e49874 Move files from gst-python into the "subprojects/gst-python//" subdir 2021-09-24 16:16:05 -03: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
Olivier Crête adca3bf8f7 plugin: Also look at GST_PLUGIN_PATH_1_0 2020-01-07 10:42:36 +05:30
Thibault Saunier 91d05de9b9 python: Fix type type qualifiers issues 2019-11-28 10:47:07 -03:00
Sebastian Dröge c3de24be05 Print Python version after initialization 2018-02-14 10:13:36 +02:00
Sebastian Dröge 3517f37b65 pluginloader: Print Python library path that is tried to be loaded 2018-02-14 10:10:39 +02:00
Thibault Saunier 425990047b plugin: Always initialize GIL state
gcc warns about possibly unintialized use of it

(even if it can't actually happen)
2017-07-29 23:05:24 -04:00
Thibault Saunier b5e834df90 build: Remove unused variables 2016-09-05 12:52:46 -03:00
Thibault Saunier 8b94b967a0 Avoid warning about gi.require_version not being called 2016-02-08 11:30:08 +01:00
Sebastian Dröge f9eb5b7877 python: Check return value of g_module_symbol()
CID 1320702
2015-12-14 13:03:24 +01:00
Sebastian Dröge b0e9b79ca8 python: Don't call Py_DECREF() on NULL
CID 1320703
2015-12-14 13:01:25 +01:00
Sebastian Dröge 4097d3df3c 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.
2015-11-16 10:12:37 +02:00
Sebastian Dröge 6e7af72aa3 pythonplugin: Fix compiler warning about unused format string argument
CC       libgstpythonplugin_la-gstpythonplugin.lo
gstpythonplugin.c:192:65: warning: data argument not used by format string
      [-Wformat-extra-args]
    GST_DEBUG ("GST_PLUGIN_SYSTEM_PATH set to %s", plugin_path, plugin_path);
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               ^
2014-10-19 13:34:59 +02:00
Thibault Saunier 367d281ab6 Reimplement gstpython plugin on top of PyGobject 2014-06-06 10:28:58 +02:00
Thibault Saunier a4b7a67f84 Keep only the testsuite as we are now using GObject Introspection for bindings 2012-07-30 16:24:10 -04:00
David Hoyt dc5d2e6167 plugin: Fix build on MSVC
Fixes #633141
2010-10-27 16:59:08 +02:00
Leo Singer 2c31e12c5e plugin: fix spurious exceptions in pygst_require. Fixes #624592. 2010-08-30 11:57:07 +02:00
Leo Singer 01dda89d42 plugin: refresh the plugin registry when plugins change. 2010-08-30 11:52:58 +02:00
Alessandro Decina ca020b3dd7 plugin: call pygtk.require("2.0") before importing pygobject. Fixes #623105.
Based on a patch from Leo Singer.
2010-08-27 13:20:24 +02:00
Alessandro Decina da958ac00b plugin: remove an unneeded PyType_Check call. Makes it work on centos for real. 2010-08-27 01:16:43 +02:00
Alessandro Decina 05a4a8e60b plugin: declare _PyGstElement_Type as void*.
Declaring _PyGstElement_Type as PyTypeObject makes the loader on centos fail
because of a missing symbol.
2010-08-26 23:34:04 +02:00
Alessandro Decina e564f783ca Make the plugin loader work on OSX with the standard python install. 2010-08-26 17:14:32 +02:00
Alessandro Decina c5b2a96bc9 plugin: refactor the initialization code.
Remove references to global python objects from the initialization code. This
makes it possible to avoid linking to libpython.
2010-08-26 12:15:19 +02:00
Alessandro Decina 8b02893346 plugin: check for _Py_NoneStruct instead of Py_None.
When checking if CPython is already loaded, don't check for Py_None which is a
macro but use _Py_NoneStruct which is a real symbol.
2010-08-25 11:08:15 +02:00
Edward Hervey 3ae49e9d61 gstpythonplugin: Don't use pyg_gil_* in pure python. Fixes #583378
At this point, pygobject wasn't loaded yet ... cause pyg_gil_state_ensured
to not be initialized to the proper method.
2009-05-22 12:06:49 +02:00
Edward Hervey 7120588675 gstpythonplugin: Use strcmp for old glib. Fixes #579383 2009-04-18 09:05:54 +02:00
Edward Hervey bbedab4e65 registry: fix deadlock with recursive registry scanning.
The way to properly fix this issue was in fact to disable the registry
scanning when we import gst from the python plugin loader since...
we are 100% guaranteed this is being called from a registry scan :)
2009-04-12 21:27:33 +02:00
Edward Hervey 6d6781e01f plugin: Don't import modules that were already imported.
This avoids warnings for the cases where pygst.require() was already
called.
2009-02-27 12:29:04 +01:00
Edward Hervey c4d785bc7b Plugin Loader: Don't register non-gstElement subclasses 2009-02-20 10:19:47 +01:00
Edward Hervey 9a5a1e8e7e Python plugin loader implementation.
Fixes #304361.
2009-02-09 14:02:34 +01:00