Re: Gstreamermm parsing question
- From: José Alburquerque <jaalburquerque cox net>
- To: José Tomás Tocino García <theom3ga gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Gstreamermm parsing question
- Date: Tue, 15 Jun 2010 15:56:44 -0400
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é
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]