Re: [Vala] Problem with Closure in Coroutine
- From: Michael 'Mickey' Lauer <mickey vanille-media de>
- To: Jürg Billeter <j bitron ch>
- Cc: Vala-list <Vala-list gnome org>
- Subject: Re: [Vala] Problem with Closure in Coroutine
- Date: Sun, 13 Dec 2009 13:00:11 +0100
Am Sonntag, den 13.12.2009, 11:01 +0100 schrieb Jürg Billeter:
On Sat, 2009-12-12 at 19:18 +0100, Michael 'Mickey' Lauer wrote:
The problem seems to be that the data for the closure
(_data_->_data2_)
gets unref'ed when the function ends; however Gst is calling the
callback later on and then the instance is 0x0. The C code for this
function is:
Can you check whether it works if you use add_watch_full() instead of
add_watch()?
Awesome, that does it! Should we then change add_watch like
- public uint add_watch (Gst.BusFunc func);
+ public uint add_watch (owned Gst.BusFunc func);
?
Thanks a lot,
Mickey.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]