[Bug 691185] WARNING **: expected enumeration type GstFormat, but got Format instead" when setting GstFormat property on GStreamer appsrc element

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sun Jan 27 07:28:16 PST 2013


https://bugzilla.gnome.org/show_bug.cgi?id=691185
  GStreamer | don't know | unspecified

--- Comment #6 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2013-01-27 15:28:09 UTC ---
When I annotate the type explicitly like this:

@@ -266,7 +266,8 @@ gst_app_src_class_init (GstAppSrcClass * klass)
           "The allowed caps for the src pad", GST_TYPE_CAPS,
           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   /**
-   * GstAppSrc::format:
+   * GstAppSrc:format:
+   * Type: Gst.Format
    *
    * The format to use for segment events. When the source is producing
    * timestamped buffers this property should be set to GST_FORMAT_TIME.

I get this in the .gir file:

      <property name="format" writable="1" transfer-ownership="none">
        <doc xml:whitespace="preserve">The format to use for segment events.
When the source is producing
timestamped buffers this property should be set to GST_FORMAT_TIME.</doc>
        <type name="Gst.Format"/>
      </property>

But I still have problems, even if I import GstApp explicitly form the start
(even after calling Gst.init to make sure the GType for GstFlowReturn is
registered in the GType system):

>>> from gi.repository import Gst
>>> from gi.repository import GstApp
>>> Gst.init(None)
[]
>>> src=Gst.ElementFactory.make('appsrc',None)
>>> src.set_property('format', Gst.Format.TIME)

** (python:7862): WARNING **: expected enumeration type GstFormat, but got
Format instead


Anything I missed?

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list