<br><font size=2 face="sans-serif">my application is just like the following,but
nothing display ,what's wrong with my application. would you please give
me</font>
<br><font size=2 face="sans-serif">one suggestion,thanks a lot</font>
<br>
<br><font size=2 face="sans-serif">0.gst_init</font>
<br><font size=2 face="sans-serif">1. create the pipeline</font>
<br><font size=2 face="sans-serif">2. call gst_element_factory_make to
create the fakesrc, mpeg2decoder, mpeg2sink</font>
<br><font size=2 face="sans-serif">3. call gst_bus_add_watch</font>
<br><font size=2 face="sans-serif">4. call gst_bin_add_many and gst_element_link_many</font>
<br><font size=2 face="sans-serif">5. call g_object_set( G_OBJECT(fakesrc),</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &quot;signal-handoffs&quot;,TRUE,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &quot;sizemax&quot;,1316,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &quot;sizetype&quot;,2,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; NULL);</font>
<br><font size=2 face="sans-serif">6. call g_signal_connect(fakesrc,&quot;handoff&quot;,G_CALLBACK(cb_handoff),NULL);</font>
<br>
<br><font size=2 face="sans-serif">7. read the mpeg2 file and store the
media data into one buffer</font>
<br>
<br><font size=2 face="sans-serif">8. &nbsp;for(i = 0; i &lt; num; i ++)
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//num
is the number of the file buffer num = filesize/1316 </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;{</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; memcpy(GST_BUFFER_DATA(gbuf),
ptr, 1316); &nbsp; &nbsp;//gbuf is the pointer that point to fakesrc buffer
&nbsp; &nbsp;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//ptr is the pointer
that point to the file data</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; g_printf(&quot;222222222\n&quot;);</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; ptr += 1316;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; sleep(3);</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; g_main_iteration(TRUE);</font>
<br><font size=2 face="sans-serif">&nbsp; }</font>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
</font><img src=cid:_1_0829819808298050002A032348257176><br><pre>
--------------------------------------------------------
ZTE&nbsp;Information&nbsp;Security&nbsp;Notice:&nbsp;The&nbsp;information&nbsp;contained&nbsp;in&nbsp;this&nbsp;mail&nbsp;is&nbsp;solely&nbsp;property&nbsp;of&nbsp;the&nbsp;sender's&nbsp;organization.&nbsp;This&nbsp;mail&nbsp;communication&nbsp;is&nbsp;confidential.&nbsp;Recipients&nbsp;named&nbsp;above&nbsp;are&nbsp;obligated&nbsp;to&nbsp;maintain&nbsp;secrecy&nbsp;and&nbsp;are&nbsp;not&nbsp;permitted&nbsp;to&nbsp;disclose&nbsp;the&nbsp;contents&nbsp;of&nbsp;this&nbsp;communication&nbsp;to&nbsp;others.
This&nbsp;email&nbsp;and&nbsp;any&nbsp;files&nbsp;transmitted&nbsp;with&nbsp;it&nbsp;are&nbsp;confidential&nbsp;and&nbsp;intended&nbsp;solely&nbsp;for&nbsp;the&nbsp;use&nbsp;of&nbsp;the&nbsp;individual&nbsp;or&nbsp;entity&nbsp;to&nbsp;whom&nbsp;they&nbsp;are&nbsp;addressed.&nbsp;If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;email&nbsp;in&nbsp;error&nbsp;please&nbsp;notify&nbsp;the&nbsp;originator&nbsp;of&nbsp;the&nbsp;message.&nbsp;Any&nbsp;views&nbsp;expressed&nbsp;in&nbsp;this&nbsp;message&nbsp;are&nbsp;those&nbsp;of&nbsp;the&nbsp;individual&nbsp;sender.
This&nbsp;message&nbsp;has&nbsp;been&nbsp;scanned&nbsp;for&nbsp;viruses&nbsp;and&nbsp;Spam&nbsp;by&nbsp;ZTE&nbsp;Anti-Spam&nbsp;system.
</pre>