[gst-devel] List All Properties of an Element

Wes Miller wmiller at sdr.com
Thu Dec 2 22:40:07 CET 2010


Hey, I forgot to advertise...

   a call to

            gst_element_print_properties( GstElement *element );

returns something like the following example output for a gstrtpbin element. 
The output is about 110 columns wide.  Not great for viewing in vi* unless
you turn line wrap off.

(if your viewer happens to use proportional fonts, try cut-n-pasting into
another editor)



<-->|<--- property name --->|<-- current value -->|<-------- type
--------->|<----- range and default ----->
    | ELEMENT CLASS NAME    | GstRtpBin           |                        
|
    | ELEMENT FACTORY NAME  | gstrtpbin           | RTP Bin                
|
rw- | name                  | "rtpbin"            | G_TYPE_STRING          
| null
rw- | async-handling        | false               | G_TYPE_BOOLEAN         
| false
rw- | latency               | 1000                | G_TYPE_UINT            
| (0 - 4294967295)   200
rw- | sdes                  | GstStructure        | Boxed pointer of type
"GstStructure"
rw- | do-lost               | false               | G_TYPE_BOOLEAN         
| false
rw- | ignore-pt             | false               | G_TYPE_BOOLEAN         
| false
rw- | autoremove            | false               | G_TYPE_BOOLEAN         
| false
rw- | buffer-mode           | 1, "slave"          | Enum
"RTPJitterBufferMode" : 1, "slave"



In the function, the topmost three variable declarations are for c2w, c3w
and c4w which control the width of columns 2, 3 and 4, respectively.  The
function header gives details on how the output is ordered and formatted.

Wes



-- 
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/List-All-Properties-of-an-Element-tp3065421p3070267.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list