<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">
"signal-handoffs",TRUE,</font>
<br><font size=2 face="sans-serif">
"sizemax",1316,</font>
<br><font size=2 face="sans-serif">
"sizetype",2,</font>
<br><font size=2 face="sans-serif">
NULL);</font>
<br><font size=2 face="sans-serif">6. call g_signal_connect(fakesrc,"handoff",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. for(i = 0; i < num; i ++)
//num
is the number of the file buffer num = filesize/1316 </font>
<br><font size=2 face="sans-serif"> {</font>
<br><font size=2 face="sans-serif"> memcpy(GST_BUFFER_DATA(gbuf),
ptr, 1316); //gbuf is the pointer that point to fakesrc buffer
</font>
<br><font size=2 face="sans-serif">
//ptr is the pointer
that point to the file data</font>
<br><font size=2 face="sans-serif"> g_printf("222222222\n");</font>
<br><font size=2 face="sans-serif"> ptr += 1316;</font>
<br><font size=2 face="sans-serif"> sleep(3);</font>
<br><font size=2 face="sans-serif"> g_main_iteration(TRUE);</font>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
</font><img src=cid:_1_0829819808298050002A032348257176><br><pre>
--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail is solely property of the sender's organization. This mail communication is confidential. Recipients named above are obligated to maintain secrecy and are not permitted to disclose the contents of this communication to others.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. Any views expressed in this message are those of the individual sender.
This message has been scanned for viruses and Spam by ZTE Anti-Spam system.
</pre>