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:
Edward Hervey 2008-06-13 11:11:38 +00:00
parent 7e06ad12c6
commit 6c881f6ab6
4 changed files with 8 additions and 31 deletions

View file

@ -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>
* gst/gstpad.override:

View file

@ -174,14 +174,6 @@ if RTLD_GLOBAL != -1 and RTLD_LAZY != -1:
except:
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
sys.setdlopenflags(dlsave)

View file

@ -26,22 +26,6 @@ ignore
gst_element_get_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
static PyObject *
_wrap_gst_element_get_pad_template(PyGObject *self, PyObject *args)

View file

@ -40,12 +40,6 @@ class ElementTest(TestCase):
assert isinstance(element, gst.Element)
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
## class FakeSinkTest(ElementTest):
@ -153,7 +147,6 @@ class NonExistentTest(ElementTest):
testGoodConstructor = lambda s: None
testGoodConstructor2 = lambda s: None
testFancyConstructor = lambda s: None
class FileSrcTest(ElementTest):
name = 'filesrc'