[patch] Add various functions and fixed to rbgst-pad

Hi,

See attached patch

Sjoerd

Hi,

In [email protected]
“[ruby-gnome2-devel-en] [patch] Add various functions and fixed to
rbgst-pad” on Sat, 29 Mar 2008 21:27:24 +0100,
Sjoerd S. [email protected] wrote:

See attached patch

It was very happy for us if you considered to follow our
coding-style.

  • if (!rb_obj_is_kind_of(other_pad, cGstPad)) {

Use RVAL2CBOOL not !.

+rb_gst_pad_link2 (VALUE self, VALUE other_pad) {

Too bad name.

  • ret = GOBJ2RVAL(pad);
  • /* gst_pad_get_peer gave us a ref, which we don’t need anymore so drop it */
  • g_object_unref (pad);
  • return ret;

Use GOBJ2RVAL_UNREF.

  • rb_define_alias(c, “caps=”, “set_caps”);

Use G_DEF_SETTERS.

Others are OK for me.

Thanks,

kou

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs