[gst-devel] How can I have two main loops in my program??

namus suman.subj at gmail.com
Fri Mar 19 16:01:32 CET 2010


In case ,when we are using g_main_loop_run() :

before we run g_main_loop_run() we are initializing  pipeline state to
GST_STATE_PAUSED
such as ..gst_element_set_state (pipeline,  GST_STATE_PAUSED)


my question is , should we need to initialise pipeline to GST_STATE_PAUSED
or GST_STATE_PLAYING ? in case of below mentioned :
while ((msg = gst_bus_pop (g_bus))) {
>     ... handle message ...
>     gst_message_unref (msg);
>   } 

please explain (or state any link) the significance of initialization of
pipeline .?

i tried with initialising with either of states mentioned above and an error
is obtained as shown below (if possible,please throw a light why this error
comes):
:373: In While() ,GST_MESSAGE_TYPE_NAME(msg) = state-changed  
: State changed
:385: State changed 1 -> 2
:373: In While() ,GST_MESSAGE_TYPE_NAME(msg) = state-changed  
:383: State changed
385: State changed 1 -> 2
:373: In While() ,GST_MESSAGE_TYPE_NAME(msg) = state-changed  
:383: State changed
385: State changed 1 -> 2
:373: In While() ,GST_MESSAGE_TYPE_NAME(msg) = state-changed  
:383: State changed
:385: State changed 1 -> 2
:373: In While() ,GST_MESSAGE_TYPE_NAME(msg) = state-changed  
:383: State changed
:385: State changed 2 -> 3
:373: In While() ,GST_MESSAGE_TYPE_NAME(msg) = stream-status  
:373: In While() ,GST_MESSAGE_TYPE_NAME(msg) = stream-status  
:373: In While() ,GST_MESSAGE_TYPE_NAME(msg) = error  
:417: Error: Internal data flow error. - Debug: gstbasesrc.c(2378):
gst_base_src_loop (): /GstPipeline:metadata-pipeline/GstFileSrc:file-source:
streaming task paused, reason not-linked (-1) 

-- 
View this message in context: http://n4.nabble.com/How-can-I-have-two-main-loops-in-my-program-tp1594663p1599481.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list