On Tue, 2010-06-15 at 13:25 -0400, José Alburquerque wrote:
> GstValueList is not really a type, it's really a GValue that contains a
> list of GValues. The GStreamer API has convenience methods for working
> with these but I didn't see the need to add those (until now) so to get
> to the list, it will be necessary to use a combination of C++ and C:
>
> Glib::ValueBase magnitudes;
> structure->get_field("magnitude", magnitudes);
> ...
> Glib::Value<float> magnitudeVal;
> magnitudeVal.init(g_value_list_get_value(magnitudes.gobj(), index);
To avoid confusion, the above line should be:
magnitudeVal.init(gst_value_list_get_value(magnitudes.gobj(), index));
> float magnitude = magnitudeVal.get();
> ...
--
José
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list