[QtGstreamer] Howto extract GstValueList data from a QGlib::Value object?

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

[QtGstreamer] Howto extract GstValueList data from a QGlib::Value object?

Yohan Pereira

Hi,

How does one go about converting a QGLib::Value to a GstValueList or an equivalent data structure.

 

Heres the situation, I have added a level element which generates a message containing a GstValueList of gdoubles that represent the power levels for each channel. How do I access this data ? I am probably missing something very obvious here.

 

Thanks.

 

--

 

- Yohan Pereira

 

The difference between a Miracle and a Fact is exactly the difference

between a mermaid and a seal.

-- Mark Twain


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

Re: [QtGstreamer] Howto extract GstValueList data from a QGlib::Value object?

George Kiagiadakis
On Tue, Mar 27, 2012 at 7:53 PM, Yohan Pereira <[hidden email]> wrote:

> Hi,
>
> How does one go about converting a QGLib::Value to a GstValueList or an
> equivalent data structure.
>
> Heres the situation, I have added a level element which generates a message
> containing a GstValueList of gdoubles that represent the power levels for
> each channel. How do I access this data ? I am probably missing something
> very obvious here.
>

No, you are not missing something. Unfortunately, GstValueList support
is missing from QtGStreamer. Patches welcome :)
You can, of course, use the C api on the QGLib::Value directly.

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

Re: [QtGstreamer] Howto extract GstValueList data from a QGlib::Value object?

Yohan Pereira

On Tuesday 27 Mar 2012 20:42:59 George Kiagiadakis wrote:

> No, you are not missing something. Unfortunately, GstValueList support

> is missing from QtGStreamer. Patches welcome

 

Ahh I was afraid of that.

 

> You can, of course, use the C api on the QGLib::Value directly.

 

I *temporaily* resorted to parsing the string output using regex :D. It was just so easy to do but im probably better off with the C api.

 

Thanks for the reply.

 

--

 

- Yohan Pereira

 

The difference between a Miracle and a Fact is exactly the difference

between a mermaid and a seal.

-- Mark Twain


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel