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

Stefan Kost ensonic at hora-obscura.de
Mon Nov 19 21:19:01 CET 2007


Hi,

Volter Yen schrieb:
>  
> 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?

Its much easier: gst_message_new_application

Stefan

>  
>  
> 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