[gst-devel] how to customize gstmesage in application?

Edward Hervey bilboed at gmail.com
Mon Nov 26 16:00:53 CET 2007


Go back to first courses of C programming,

  look at the structure, look at how you're accessing the 3 first
elements of the structure, and how you're accessing the 2 last.
  Now try to think why the compiler is complaining only about the first
3 ones.

     Edward

On Mon, 2007-11-19 at 15:36 +0800, Volter Yen wrote:
>  
> 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
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________ gstreamer-devel mailing list gstreamer-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list