<table cellpadding=3 cellspacing=0 border=0 width=100% bgcolor=white><tr valign=top><td width=100%><font size=2 color=black>hi all,<br> <br>i have created a plugin for a hardware h264 decoder , (dsp processor)<BR> <br>the decoder has exposed api for decoding , and displaying the picture.<br> <br> <br>now in my decoder plugin after calling the decode frame api , the decoded data is in a fixed location , and i dont want to call display api from decoder plugin ,<br>i want it to be called from my videosink plugin. because of av sync <br> <br> <br>now i want to pass a GstBuffer to videosink plugin , created using gst_buffer_new() api<br> <br>and having  GST_BUFFER_DATA(buf) = decoder-&gt;frambuf<br>                  GST_BUFFER_SIZE(buf)  = width * height * 1.5<br>                  GST_BUFFER_TIMESTAMP(buf) = timestamp<br>                  GST_BUFFER_DURATION(buf) = duration<br>   <BR>can i set the caps on this gstbuffer  using 
gst_buffer_set_caps(buf,GST_PAD_CAPS(decoder-&gt;srcpad))<BR><br>what will happen if do gst_buffer_unref on this buffer in sink . <br> <br>here i am not concerned about data field of buffer getting freed, because will be taken care by hardware decoder.<BR><br></font></td></tr></table><p><hr><font size=2 face=geneva><b>Join Excite! - <a href=http://www.excite.com target=_blank>http://www.excite.com</a></b><br>The most personalized portal on the Web!</font>