gst_structure_get_float ?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

gst_structure_get_float ?

gwunder
Does gst_structure_get_float exist?
I'm trying to push an event across that contains G_TYPE_FLOAT objects.
What structure method can I use to retrieve?
Reply | Threaded
Open this post in threaded view
|

Re: gst_structure_get_float ?

Tim-Philipp Müller-2
On Tue, 2012-01-31 at 05:35 -0800, gwunder wrote:

> Does gst_structure_get_float exist?
> I'm trying to push an event across that contains G_TYPE_FLOAT objects.
> What structure method can I use to retrieve?

You can use the GValue API: gst_structure_get_value() +
g_value_get_float().

But it might be easier to put doubles into the structure/caps instead
and use gst_structure_get_double().

Cheers
 -Tim

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst_structure_get_float ?

gwunder
That worked perfectly....thanks.
I chose the gst_structure_get_value() +
g_value_get_float() method.