Re: Cannot Initialize GValue with type 'gfloat'
- From: Andrew Potter <agpotter gmail com>
- To: Cole Bush <bush c husky neu edu>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Cannot Initialize GValue with type 'gfloat'
- Date: Sun, 17 Apr 2016 15:01:14 -0700
On Sun, Apr 17, 2016 at 11:40 AM, Cole Bush <bush c husky neu edu> wrote:
Glib-GObject-WARNING **: /file/path/gvalue.c:181: cannot initialize GValue
with type 'gfloat', the value has already been initialized as 'gfloat'
Looks like Gst::ValueList::get() calls Glib::Value::init() which
should only be done once. Since you are in a loop, it is done more
than once. Looks like the glibmm doesn't have g_value_unset() wrapped.
You can put g_value_unset(mag.gobj()) at the top of your loop. Or you
can put the the GLib::Value<float> mag declaration at the top of your
loop.
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]