[gst-devel] Accessing playbin's streaminfo from high languages (python/ruby etc)

Sjoerd Simons sjoerd at spring.luon.net
Thu May 4 04:28:29 CEST 2006


Hi,

  For the gst 0.10 ruby bindings i want to put together an simple videoplayer
  example using playbin. Something like what the play example is for the python
  bindings.

  Now at some point i wanted to access the stream-info property. Unfortunately
  this is declared a being a gpointer, which is ofcourse completely useless
  from the point of ruby and python. More specific, there is no type information
  the bindings can use to do the convertion to something usefull.

  I can see two options to fix this. 

  0) playbin could provide a variant on the stream-info property which 
     is correctly typed, using GST_TYPE_LIST for example. Unfortunately
     there is no GParamSpec for GST_TYPE_LIST, so that would require some
     additions to core.
  1) Add stream-info-added, stream-info-removed signals to playbin. Easy to do,
     requires no core changes. 
 
  I'd really like to see at least the first option implemented at some point,
  imho base plugins really shouldn't have information that's basically
  inaccessible for language bindings. (Ofcourse you can hack around this, but
  that's imho really really ugly) 

  The second option might be a good idea anyway, as most things using playbin
  will currently probably listen to notify::stream-info anyway. 

  Comments? 
  
  Sjoerd
-- 
When you know absolutely nothing about the topic, make your forecast by
asking a carefully selected probability sample of 300 others who don't
know the answer either.
		-- Edgar R. Fiedler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20060504/fba6640d/attachment.pgp>


More information about the gstreamer-devel mailing list