[gst-devel] gstreamer, python binding and intRange :

nico nico at inattendu.org
Tue Oct 14 23:42:23 CEST 2008


Hello
I was trying to write a python function who check the type from a field
in a Caps structure.
>From the python binding I use the function : has_field_typed
My first param is a field name , and the second the type.

Is on chossing the type where I have a problem.
if field type is  |G_TYPE_INT , I use :
has_field_typed("width",gobject.TYPE_INT). The result is fine.

if field type is ||GST_TYPE_INT_RANGE or ||GST_TYPE_FRACTION, I don't
know what is the second parameter value for ||has_field_typed()||. I did
not find any gst.TYPE_INT_RANGE constant.  What value I can use for that
or where it is defined ? I was trying to play  with gst.IntRange(), but
without success.

Thanks in advance

Nico.

 
||

|






More information about the gstreamer-devel mailing list