Registering extensions with Python bindings

Pedro Lacerda pslacerda at gmail.com
Sun Feb 23 18:41:16 PST 2014


Sorry, just now I realized that I sent insufficient information. This
problem occurs using gstreamer 1.2.3 through gobject introspection in
Python 2 or 3.

Code and log: https://gist.github.com/pslacerda/9177956


0:00:00.213461920 11307       0xcb7b20 INFO                GST_INIT
gst.c:350:gst_init_check: initialized GStreamer successfully
0:00:00.217691640 11307       0xcb7b20 DEBUG       GST_ELEMENT_PADS
gstelement.c:278:gst_element_base_class_init: type __main__+CoolBin :
factory (nil)

0:00:00.219184920 11307       0xcb7b20 DEBUG           GST_REGISTRY
gstregistry.c:574:gst_registry_add_feature:<registry0> adding feature
0x1109d60 (cool)

0:00:00.219233240 11307       0xcb7b20 DEBUG        GST_REFCOUNTING
gstobject.c:684:gst_object_set_parent:<cool> set parent (ref and sink)
0:00:00.219260080 11307       0xcb7b20 INFO      GST_PLUGIN_LOADING
gstplugin.c:225:gst_plugin_register_static: registered static plugin
"coolpl"

0:00:00.219273920 11307       0xcb7b20 DEBUG           GST_REGISTRY
gstregistry.c:463:gst_registry_add_plugin:<registry0> adding plugin
0x1074590 for filename "(NULL)"
0:00:00.219285840 11307       0xcb7b20 INFO      GST_PLUGIN_LOADING
gstplugin.c:227:gst_plugin_register_static: added static plugin
"coolpl", result: 1

0:00:00.219355040 11307       0xcb7b20 DEBUG                GST_BUS
gstbus.c:229:gst_bus_init:<GstBus at 0x1109e40> created
0:00:00.219378000 11307       0xcb7b20 DEBUG                    bin
gstbin.c:500:gst_bin_init:<GstBin at 0x1130050> using bus <bus0> to
listen to children

0:00:00.219474560 11307       0xcb7b20 DEBUG        GST_REFCOUNTING
gstbin.c:518:gst_bin_dispose:<__main__+coolbin0> dispose
0:00:00.219503880 11307       0xcb7b20 INFO         GST_REFCOUNTING
gstelement.c:2873:gst_element_dispose:<__main__+coolbin0> dispose

0:00:00.219514360 11307       0xcb7b20 INFO         GST_REFCOUNTING
gstelement.c:2917:gst_element_dispose:<__main__+coolbin0> parent class
dispose

0:00:00.219524120 11307       0xcb7b20 INFO         GST_REFCOUNTING
gstelement.c:2948:gst_element_finalize:<__main__+coolbin0> finalize
0:00:00.219535960 11307       0xcb7b20 INFO         GST_REFCOUNTING
gstelement.c:2953:gst_element_finalize:<__main__+coolbin0> finalize
parent

0:00:00.220667400 11307       0xcb7b20 DEBUG     GST_PLUGIN_LOADING
gstpluginfeature.c:105:gst_plugin_feature_load: loading plugin for
feature 0x1109d60; 'cool'

0:00:00.220706600 11307       0xcb7b20 INFO     GST_ELEMENT_FACTORY
gstelementfactory.c:365:gst_element_factory_create: creating element
"cool"
0:00:00.220744040 11307       0xcb7b20 DEBUG                GST_BUS
gstbus.c:229:gst_bus_init:<GstBus at 0x1110040> created

0:00:00.220791800 11307       0xcb7b20 DEBUG                    bin
gstbin.c:500:gst_bin_init:<GstBin at 0x11301f0> using bus <bus1> to
listen to children

0:00:00.220870920 11307       0xcb7b20 DEBUG        GST_REFCOUNTING
gstbin.c:518:gst_bin_dispose:<__main__+CoolBin at 0x11301f0> dispose
0:00:00.220889400 11307       0xcb7b20 INFO         GST_REFCOUNTING
gstelement.c:2873:gst_element_dispose:<__main__+CoolBin at 0x11301f0>
dispose

0:00:00.220899280 11307       0xcb7b20 INFO         GST_REFCOUNTING
gstelement.c:2917:gst_element_dispose:<__main__+CoolBin at 0x11301f0>
parent class dispose

0:00:00.220909200 11307       0xcb7b20 INFO         GST_REFCOUNTING
gstelement.c:2948:gst_element_finalize:<__main__+CoolBin at 0x11301f0>
finalize
0:00:00.220918600 11307       0xcb7b20 INFO         GST_REFCOUNTING
gstelement.c:2953:gst_element_finalize:<__main__+CoolBin at 0x11301f0>
finalize parent


(python:11307): GStreamer-CRITICAL **: gst_object_set_name: assertion
`GST_IS_OBJECT (object)' failed
/usr/lib/python2.7/dist-packages/gi/types.py:113: Warning:
g_object_notify_queue_thaw: assertion
`g_atomic_int_get(&object->ref_count) > 0' failed

  return info.invoke(*args, **kwargs)
0:00:00.221298000 11307       0xcb7b20 DEBUG    GST_ELEMENT_FACTORY
gstelementfactory.c:391:gst_element_factory_create: created element
"cool"
/usr/lib/python2.7/dist-packages/gi/types.py:113: Warning:
g_object_get_qdata: assertion `G_IS_OBJECT (object)' failed
  return info.invoke(*args, **kwargs)
/usr/lib/python2.7/dist-packages/gi/types.py:113: Warning:
g_type_get_qdata: assertion `node != NULL' failed
  return info.invoke(*args, **kwargs)
/usr/lib/python2.7/dist-packages/gi/types.py:113: Warning:
g_ascii_strncasecmp: assertion `s2 != NULL' failed
  return info.invoke(*args, **kwargs)




abçs,
Pedro Lacerda


2014-02-21 20:29 GMT-03:00 Pedro Lacerda <pslacerda at gmail.com>:

> I followed these examples for plugin registration using python gobject
> introspection.
>
>
> http://bazaar.launchpad.net/~jderose/+junk/gst-examples/view/head:/plugin-1.0
>
> http://cgit.freedesktop.org/gstreamer/gst-python/tree/examples/sinkelement-registry.py
>
> Unfortunately I can't use GObject properties at element initialization if
> it's being created from factories like Gst.ElementFactory.make or
> gst_parse_launch:
>
> http://paste.debian.net/83407/ <http://paste.debian.net/83406/>
> (python3:28356): GStreamer-CRITICAL **: gst_object_set_name: assertion
> `GST_IS_OBJECT (object)' failed
>
> How can I workaround this failure?
>
> very thanks,
> Pedro Lacerda
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140223/c326a198/attachment.html>


More information about the gstreamer-devel mailing list