<DIV> </DIV>
<DIV>Hi all,</DIV>
<DIV> 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? </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>this is my processing segment:</DIV>
<DIV> </DIV>
<DIV> 158 GstMessage *mymsg;<BR> 159 GstStructure *mystruct;<BR></DIV>
<DIV> 227 gst_structure_set_value(mystruct,"PLAY_CTL","next");<BR> 228<BR> 229 mymsg.mini_object = NULL;<BR> 230 mymsg.type = (1 << 14);<BR> 231 mymsg.timestamp = 0;<BR> 232 mymsg->src = NULL;<BR> 233 mymsg->structure = mystruct;<BR> 234<BR> 235 gst_bus_post(bus,mymsg);<BR></DIV>
<DIV> </DIV>
<DIV>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:</DIV>
<DIV>typedef struct {<BR> GstMiniObject mini_object;</DIV>
<DIV> GstMessageType type;<BR> guint64 timestamp;<BR> GstObject *src;</DIV>
<DIV> GstStructure *structure;<BR>} GstMessage;</DIV>
<DIV> </DIV>
<DIV>could anybody help me? thank you!</DIV>
<DIV>Volter</DIV>