mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
Re-opens #530417
Original commit message from CVS: * gst/__init__.py: * gst/gstelement.override: * testsuite/test_element.py: Revert 2008-05-08 Edward Hervey <edward.hervey@collabora.co.uk> Re-opens #530417
This commit is contained in:
parent
7e06ad12c6
commit
6c881f6ab6
4 changed files with 8 additions and 31 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2008-06-13 Edward Hervey <edward.hervey@collabora.co.uk>
|
||||||
|
|
||||||
|
* gst/__init__.py:
|
||||||
|
* gst/gstelement.override:
|
||||||
|
* testsuite/test_element.py:
|
||||||
|
Revert 2008-05-08 Edward Hervey <edward.hervey@collabora.co.uk>
|
||||||
|
Re-opens #530417
|
||||||
|
|
||||||
2008-06-12 Edward Hervey <edward.hervey@collabora.co.uk>
|
2008-06-12 Edward Hervey <edward.hervey@collabora.co.uk>
|
||||||
|
|
||||||
* gst/gstpad.override:
|
* gst/gstpad.override:
|
||||||
|
|
|
@ -174,14 +174,6 @@ if RTLD_GLOBAL != -1 and RTLD_LAZY != -1:
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
import gobject
|
|
||||||
from _gst import _install_element_meta
|
|
||||||
|
|
||||||
_GstElementBaseMeta = getattr(gobject, 'GObjectMeta', type)
|
|
||||||
class _GstElementMeta(_GstElementBaseMeta):
|
|
||||||
__call__ = element_factory_make
|
|
||||||
_install_element_meta(_GstElementMeta)
|
|
||||||
|
|
||||||
version = get_gst_version
|
version = get_gst_version
|
||||||
|
|
||||||
sys.setdlopenflags(dlsave)
|
sys.setdlopenflags(dlsave)
|
||||||
|
|
|
@ -26,22 +26,6 @@ ignore
|
||||||
gst_element_get_property
|
gst_element_get_property
|
||||||
gst_element_set_property
|
gst_element_set_property
|
||||||
%%
|
%%
|
||||||
define _install_element_meta
|
|
||||||
static PyObject *
|
|
||||||
_wrap__install_element_meta(PyObject *self, PyObject *args)
|
|
||||||
{
|
|
||||||
PyObject *metaclass;
|
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(args, "O", &metaclass))
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
Py_INCREF(metaclass);
|
|
||||||
PyGstElement_Type.ob_type = (PyTypeObject*)metaclass;
|
|
||||||
|
|
||||||
Py_INCREF(Py_None);
|
|
||||||
return Py_None;
|
|
||||||
}
|
|
||||||
%%
|
|
||||||
override gst_element_get_pad_template args
|
override gst_element_get_pad_template args
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_wrap_gst_element_get_pad_template(PyGObject *self, PyObject *args)
|
_wrap_gst_element_get_pad_template(PyGObject *self, PyObject *args)
|
||||||
|
|
|
@ -40,12 +40,6 @@ class ElementTest(TestCase):
|
||||||
assert isinstance(element, gst.Element)
|
assert isinstance(element, gst.Element)
|
||||||
assert element.get_name() == self.alias
|
assert element.get_name() == self.alias
|
||||||
|
|
||||||
def testFancyConstructor(self):
|
|
||||||
element = gst.Element(self.name, self.alias)
|
|
||||||
self.failUnless(element, 'element is None')
|
|
||||||
self.failUnless(isinstance(element, gst.Element))
|
|
||||||
self.assertEquals(element.get_name(), self.alias)
|
|
||||||
|
|
||||||
## FIXME : Make a new test for state changes, using bus signals
|
## FIXME : Make a new test for state changes, using bus signals
|
||||||
|
|
||||||
## class FakeSinkTest(ElementTest):
|
## class FakeSinkTest(ElementTest):
|
||||||
|
@ -153,7 +147,6 @@ class NonExistentTest(ElementTest):
|
||||||
|
|
||||||
testGoodConstructor = lambda s: None
|
testGoodConstructor = lambda s: None
|
||||||
testGoodConstructor2 = lambda s: None
|
testGoodConstructor2 = lambda s: None
|
||||||
testFancyConstructor = lambda s: None
|
|
||||||
|
|
||||||
class FileSrcTest(ElementTest):
|
class FileSrcTest(ElementTest):
|
||||||
name = 'filesrc'
|
name = 'filesrc'
|
||||||
|
|
Loading…
Reference in a new issue