Menu

#17 TypeError: unknown type GstValueList, GstIntRange in GstStructure

1.0
open
nobody
None
2015-05-24
2015-05-23
No

I'm trying to translate Gstreamer tutorials
http://cgit.freedesktop.org/~slomo/gst-sdk-tutorials/tree/gst-sdk/tutorials
to Python 2.7.
In basic tutorial 6 (see the Python code in the attachment)
http://cgit.freedesktop.org/~slomo/gst-sdk-tutorials/tree/gst-sdk/tutorials/basic-tutorial-6.c
I get the following errors:
TypeError: unknown type GstValueList
TypeError: unknown type GstIntRange

The problem seems to be in GstStructure object. When I break on line 30 and try
structure.nth_field_name(0)
'format'
structure.get_value('format')
I get this error:
error: unknown type GstValueList

From the documentation it seems that this type should be Gst.ValueList

Is this a bug, or am I missing something here?

Thanks, Tom

1 Attachments

Discussion

  • tumagonx

    tumagonx - 2015-05-24

    Thanks,
    it seems all varargs introspection are corrupted under windows

     
  • tumagonx

    tumagonx - 2015-05-24

    Just a test, does this attached typelib works for you?

     
  • tumagonx

    tumagonx - 2015-05-24

    sorry, I think that's not the problem. Under win32api headers arglist always called "..." as long it's varargs type it should be fine.

    BTW, have you check the gst introspection docs which came with pygi aio?

     

    Last edit: tumagonx 2015-05-24
    • Tomislav Tustonic

      I tried the typelib, it didn't make a difference.
      What 'introspection docs'? Do you mean the devhelp or something else?
      In devhelp, under Gst 1.0 Classes there are:
      Gst.ValueList
      Gst.IntRange
      and similar.

       

Log in to post a comment.