[ruby-gnome2-doc-cvs] [Hiki] delete - tut-gst-link-elements-simple

アーカイブの一覧に戻る

ruby-****@sourc***** ruby-****@sourc*****
2004年 2月 28日 (土) 02:35:54 JST


-------------------------
REMOTE_ADDR = 217.117.55.140
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/?tut-gst-link-elements-simple
-------------------------
= Making Simple Links

You can link two pads with:

  srcpad = element1.get_pad("src")
  sinpad = element2.get_pad("sink")

  # link them
  srcpad.link(sinkpad)

  ....

  # and unlink them
  srcpad.unlink(sinkpad)

A convenient shortcut for single-source, single-sink elements is the Gst::Element#link method:

  # link them
  element1.link(element2)
   
  ...

  # and unlink them
  element1.unlink(element2)

And an even more convenient shortcut is the Gst::Element#>> operator, which is an alias for Gst::Element#link:

  # link them all
  element1 >> element2 >> element3

You can query if a pad is linked with Gst::Pad#linked?.




ruby-gnome2-cvs メーリングリストの案内
アーカイブの一覧に戻る