<br><div><span class="gmail_quote">On 4/28/05, <b class="gmail_sendername">Pankaj GOYAL</b> &lt;<a href="mailto:pankaj.goyal@st.com">pankaj.goyal@st.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">







<div><font face="Arial" size="2"><span>HI,</span></font></div>
<div><font face="Arial" size="2"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I m 
making&nbsp;two pipeline(shown below)&nbsp;and running the two pipelines as 
different gstremer threads (using the gst_thread_new ) in 
an&nbsp;apllication.And in addition to that i m using the another&nbsp;pthread 
in the same application , which is prompting the user to close the 
apllication&nbsp;when he/she desire.Now the the problem is that my application 
gives segmentation fault after some time.After some&nbsp;hit and trial&nbsp;I 
found out&nbsp;that if i remove the pthread from&nbsp;my application and let it 
run infinitly then there&nbsp;is no segmentation fault.</span></font></div></blockquote><div>Please
build a small app using only your pthread-based code, taking input from
user, when it should, and printing when the appropriate functions are
called. Find out if this code is crashing.<br>
I suspect that there is a problem with your implementation of pthread,
because I personally have developed a big app using pthreads, and
Gstreamer threads (which are basically pthreads), and faced no probs as
such.<br>
<br>
Or you can send me the code, and the output of your app, when you run with &quot;export GST_DEBUG=*:3&quot;.<br>
<span style="font-weight: bold;">NOTE: Also, please send the pthread app I mentioned.</span><br>
<br>
&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><font face="Arial" size="2"><span> Is there any such 
problem that we can not use the gstreamer pipeline using the thread 
simultaneously&nbsp;with the pthread. Can any one please tell me the how the 
gstremer thread works</span></font></div>
<div><font face="Arial" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" size="2"><span>The description of 
the pipepline is as</span></font></div>
<div><font face="Arial" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" size="2"><span>pipeline1 is&nbsp; 
mysoundsource&nbsp; ! myencoder ! fakesink</span></font></div>
<div><font face="Arial" size="2"><span>pipeline2 is&nbsp; 
fakesrc &nbsp;! mytestdecoder ! mysoundsink</span></font></div>
<div><font face="Arial" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" size="2"><span>Regards</span></font></div><span class="sg">
<div><font face="Arial" size="2"><span>pankaj&nbsp;</span></font></div>

</span></blockquote></div><br><br><br>-- <br>Confused about which path to take in life?