Update gstreamer registry

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/gstreamer/head/gstreamer/html/gstreamer-Gst.html#gst-update-registry


Vincent C.

Hi,

In [email protected]
“[ruby-gnome2-devel-en] Update gstreamer registry” on Sat, 5 Mar 2011
20:04:55 +0100,
Vincent C. [email protected] 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/gstreamer/head/gstreamer/html/gstreamer-Gst.html#gst-update-registry

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

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

2011/3/7 Kouhei S. [email protected]:

You missed ‘()’. :slight_smile:

  • 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en


Vincent C.

Hi,

In [email protected]
“Re: [ruby-gnome2-devel-en] Update gstreamer registry” on Sun, 6 Mar
2011 18:04:16 +0100,
Vincent C. [email protected] 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 ‘()’. :slight_smile:

  • return CBOOL2RVAL(gst_update_registry);

should be

  • return CBOOL2RVAL(gst_update_registry());

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