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
Thibault Saunier
025b7cfbea
plugin: Name differently between python2 and python3
...
Those are 2 different binaries and thus should have different
.so names. Just use the $PYTHON_SO for that to happen.
https://bugzilla.gnome.org/show_bug.cgi?id=738157
2015-03-06 19:29:09 +01: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
Rico Tzschichholz
34831879e9
plugin: Do not version the plugin library
2014-06-10 16:06:45 +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
53e5a77f52
plugin: don't link to libpython
2010-08-26 12:15:19 +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
4d016c78f8
plugin/Makefile.am : Remove commented lines
2009-02-09 14:02:41 +01:00
Edward Hervey
9a5a1e8e7e
Python plugin loader implementation.
...
Fixes #304361 .
2009-02-09 14:02:34 +01:00