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

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



On Sun, March 30, 2008 21:56, Jaap A. Haitsma wrote:
> 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.

That's a bug in the bindings, it should return a normal reference.

Juerg




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