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