Forum: Ruby-Gnome 2 Update gstreamer registry

C4a836af7263f84a4f7cc91ed6f3ae77?d=identicon&s=25 Vincent Carmona (vinc-mai)
on 2011-03-05 20:05
(Received via mailing list)
Hi

I would like to bind gst_update_registry function.
Should I define a module fonction (Gst.update_registry) or a class one
(Gst::Registry.update).
Gstreamer doc show this function with main ones (gst_init,
gst_version...).

http://gstreamer.freedesktop.org/data/doc/gstreame...

--
Vincent Carmona
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2011-03-06 13:21
(Received via mailing list)
Hi,

In <AANLkTikDHkn8HKWdg=Z7sqqD-bQ8PSLYovFZt4EiGzuP@mail.gmail.com>
  "[ruby-gnome2-devel-en] Update gstreamer registry" on Sat, 5 Mar 2011
20:04:55 +0100,
  Vincent Carmona <vinc4mai@gmail.com> wrote:

> I would like to bind gst_update_registry function.
> Should I define a module fonction (Gst.update_registry) or a class one
> (Gst::Registry.update).
> Gstreamer doc show this function with main ones (gst_init, gst_version...).
>
>
http://gstreamer.freedesktop.org/data/doc/gstreame...

It seems that Gst::Registry.update is better. Because
Gst::Registry.update is object oriented form (object.verb
form) but Gst.update_registry is functional form
(namespace.verb_object).

Thanks,
--
kou
C4a836af7263f84a4f7cc91ed6f3ae77?d=identicon&s=25 Vincent Carmona (vinc-mai)
on 2011-03-06 18:04
(Received via mailing list)
Attachment: gst-update-registry.diff (939 Bytes)
I have joined a patch that implements Gst::Registry.update.
However the default registry does not seems to be updated when calling
this method. Is it a gstreamer bug ?

terminal 1 $ irb
terminal 1 > require 'gst'
=> true
terminal 1 > d=Gst::Registry.default
=> #<Gst::Registry:0xb713c614 ptr=0x97c3400>
terminal 1 > d.plugins.size
=> 114
terminal 2 $ sudo aptitude install gstreamer0.10-plugins-bad
gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly
gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-ffmpeg
terminal 1 >d.plugins.size
=> 114
terminal 1 > Gst::Registry.update
=> true
terminal 1 > d.plugins.size
=> 114
terminal 1 > quit
terminal 1 $ irb
terminal 1 > require 'gst'
=> true
terminal 1 > d=Gst::Registry.default
=> #<Gst::Registry:0xb713c614 ptr=0x97c3400>
terminal 1 > d.plugins.size
=> 233
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2011-03-07 12:45
(Received via mailing list)
Hi,

In <AANLkTikUU2U=tfAebeEnCVrePcjutGD0AL_Q0QO5RNN4@mail.gmail.com>
  "Re: [ruby-gnome2-devel-en] Update gstreamer registry" on Sun, 6 Mar
2011 18:04:16 +0100,
  Vincent Carmona <vinc4mai@gmail.com> wrote:

> I have joined a patch that implements Gst::Registry.update.
> However the default registry does not seems to be updated when calling
> this method. Is it a gstreamer bug ?

You missed '()'. :-)

+    return CBOOL2RVAL(gst_update_registry);

should be

+    return CBOOL2RVAL(gst_update_registry());


Thanks,
--
kou
C4a836af7263f84a4f7cc91ed6f3ae77?d=identicon&s=25 Vincent Carmona (vinc-mai)
on 2011-03-07 16:20
(Received via mailing list)
2011/3/7 Kouhei Sutou <kou@cozmixng.org>:
> You missed '()'. :-)
>
> +  return CBOOL2RVAL(gst_update_registry);
>
> should be
>
> +  return CBOOL2RVAL(gst_update_registry());
>

Thanks for pointing my mistake. I have commited the changes.
> _______________________________________________
> ruby-gnome2-devel-en mailing list
> ruby-gnome2-devel-en@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ruby-...
>



--
Vincent Carmona
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.