Are Bus Messages Queued?

Ian Davidson id012c3076 at blueyonder.co.uk
Sat Nov 5 19:26:02 UTC 2016


In the code that you show, I do not see you initialising 'noMessage'.  I 
assume that you DO initialise it and just have not shown the code.

Ian


On 04/11/2016 17:07, Nastooh Avessta wrote:
> Hi Tim
> Thank you for your reply. Here is my use case:
> 1-	Application solicits plugins for messages, in a serialized ordered manner
> 2-	Plugins reply in an asynchronous manner
> 3-	Upon receiving messages from all targeted plugins, an action is taken
> Part 3, is coded inside the bus message handler:
>> case GST_MESSAGE_ELEMENT:
> 	    g_print("Got message from %s\n",gst_object_get_name (GST_MESSAGE_SRC(msg)));
>       int i;
> 	        for(i=0;i<messageCnt;i++){
> 	            if(!strcmp(messagePlug[i],gst_object_get_name (GST_MESSAGE_SRC(msg)))){
> 	                noMessage++;
> 	                if(noMessages==messageCnt){
> 	                    g_print("Life is good\n");
> 	
> 	                }
> 	            }
> 	        }
> 	    break;



More information about the gstreamer-devel mailing list