Re: [Vala] Problem adding gstreamer option group to context?



On Sun, Mar 30, 2008 at 7:47 PM, Sandino Flores Moreno <tigrux gmail com> wrote:
This line is wrong:

    context.add_group (Gst.init_get_option_group ());

 It should be replaced as follows:
    weak GLib.OptionGroup gst_opt_group = Gst.init_get_option_group ();
    context.add_group (gst_opt_group);

Thanks.

Is there a specific reason why Gst.init_get_option_group gives back a
weak reference? If it were to give back a normal reference the code
would be easier.

Jaap



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]