Parsing GstStructure in python

Tony Houghton h at realh.co.uk
Fri Jul 6 10:17:40 PDT 2012


I'm trying to update a python DVB application to use gstreamer 1.0 but
I've run into a problem with parsing GstStructures included in
GstMessages. For example, the "nit" message structure contains the item
"transports" which contains an array/list of structs. In 0.10 I could
read an item from a GstStructure by using the array operator [], but in
1.0 it looks like you have to use get_* functions. get_*() functions are
provided for some fundamental types, but not lists. If I try get_value()
I get this error:

  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
TypeError: unknown type GstValueList

Is gi/python support for this type missing at the moment or is there
another way I can access the data?


More information about the gstreamer-devel mailing list