[gst-devel] how to customize gstmesage in application?
Volter Yen
volter619 at 163.com
Mon Nov 19 08:36:44 CET 2007
Hi all,
I want to post a customized message to the bus, then process the message in my bus callback function, but there no guide to customize one's own GstMessage?
this is my processing segment:
158 GstMessage *mymsg;
159 GstStructure *mystruct;
227 gst_structure_set_value(mystruct,"PLAY_CTL","next");
228
229 mymsg.mini_object = NULL;
230 mymsg.type = (1 << 14);
231 mymsg.timestamp = 0;
232 mymsg->src = NULL;
233 mymsg->structure = mystruct;
234
235 gst_bus_post(bus,mymsg);
but I got compiling error infomation by saying mini_object,type and timestamp's no exisiting when I compiled it,but the GstMessage structure definition is:
typedef struct {
GstMiniObject mini_object;
GstMessageType type;
guint64 timestamp;
GstObject *src;
GstStructure *structure;
} GstMessage;
could anybody help me? thank you!
Volter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20071119/5d654668/attachment.htm>
More information about the gstreamer-devel
mailing list