[gst-devel] How to get structure content through a property?

Diqing Zhong diqing.zhong at gmail.com
Mon Dec 10 16:41:29 CET 2007


Hi all,

I want to pass some info from plugin to app,
I have a info structure and write in the following way:

In APP:
-----------------------------------------------------------------------------------------
struct my_info {
    int info_1;
     int info_2;
}

struct my_info info;

g_object_get(G_OBJECT(plugin), "my-info", &info, NULL);
------------------------------------------------------------------------------------------

I want info_1 and info_2 to be set in plugin and return to app.

How should I do that? what the type of property "my-info" should be?
(g_param_spec_pointer??)
And what need to do in get_property function?

Thanks in  advance!!


Thanks,
- Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20071210/342b87c9/attachment.htm>


More information about the gstreamer-devel mailing list