[Bug 678663] [0.11] memory: Need equivalent of PyGST Buffer.data from PyGI, gst_map_info_get_data()?

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sat Jun 30 14:39:12 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=678663
  GStreamer | gstreamer (core) | git

Alban Browaeys <prahal> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |prahal at yahoo.com

--- Comment #6 from Alban Browaeys <prahal at yahoo.com> 2012-06-30 21:39:08 UTC ---
I am confident length=<not a callbale parameter> fails because the code that
handle this in gobject-introspection:
giscanner/maintransformer.py
_apply_annotations_array
(....)
        length = array_values.get(OPT_ARRAY_LENGTH)
        if length is not None:
             paramname = self._get_validate_parameter_name(parent, length,
node)
             if paramname:
                 param = parent.get_parameter(paramname)

where _apply_annotations_array is  called from _adjust_container_type itself
called from _apply_annotations_field.( _pass_read_annotations :
if isinstance(node, (ast.Class, ast.Interface, ast.Record, ast.Union)):
            block = self._get_block(node)
            for field in node.fields:
                self._apply_annotations_field(node, block, field)
            name = self._get_annotation_name(node)
            section_name = 'SECTION:' + name.lower()
            block = self._blocks.get(section_name)
            if block:
                node.doc = block.comment
)
> here parent.get_parameter is a method that exists only for parent == Callable. , ie a callable parameter.

I tried
 * @data: (array): a pointer to the mapped data
annotation and it works fine. I wonder if the bug was fixed by above patch or a
change in gobject-introspection master, still it does the job.

-- 
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