<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
{font-family:SimSun}
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
span.EmailStyle17
{font-family:"Calibri","sans-serif";
color:windowtext}
@page WordSection1
{margin:72.0pt 72.0pt 72.0pt 72.0pt}
-->
</style>
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">We create a new Gstelement and basically it will process the video frame and pass it to another element.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Here is the code: </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">static GstFlowReturn IntelMediaDecodeChain(GstPad *pPad, GstBuffer *pBuffer)</p>
<p class="MsoNormal">{</p>
<p class="MsoNormal"> GstFlowReturn ret = GST_FLOW_OK;</p>
<p class="MsoNormal"> MediaDecode*decode_if = (MediaDecode*) (GST_OBJECT_PARENT(pPad));</p>
<p class="MsoNormal"> MediaDecodeImpl* pImpl = decode_if->pImpl;</p>
<p class="MsoNormal"> GstBuffer *outgoing_buffer = 0;</p>
<p class="MsoNormal"> bool bResult = pImpl->DecodeFunc(pBuffer, &outgoing_buffer);</p>
<p class="MsoNormal"> if( bResult == true )</p>
<p class="MsoNormal"> {</p>
<p class="MsoNormal"> gst_buffer_unref(pBuffer);</p>
<p class="MsoNormal"> assert(outgoing_buffer);</p>
<p class="MsoNormal"> gst_buffer_set_caps(outgoing_buffer, GST_PAD_CAPS(decode _if->srcpad));</p>
<p class="MsoNormal"> ret = gst_pad_push(decode _if->srcpad, outgoing_buffer );</p>
<p class="MsoNormal"> TRACE("gst_pad_push returning result: " << ret);</p>
<p class="MsoNormal"> }</p>
<p class="MsoNormal"> return ret;</p>
<p class="MsoNormal">}</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">But when we call gst_pad_push function I get function return -5 error code. And here is the Debug information when GST_DEBUG=4
</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><i>gstreamer: basertppayload gstbasertppayload.c:762:gst_basertppayload_prepare_push error: subclass did not specify clock-rate</i></p>
<p class="MsoNormal"><i>gst_pad_push returning result: result: -5</i></p>
<p class="MsoNormal"><i>0x89a310 : Element doesn't implement handling of this stream. Please file a bug.</i></p>
<p class="MsoNormal"><i>gstreamer: basesrc gstbasesrc.c:2378:gst_base_src_loop error: Internal data flow error.</i></p>
<p class="MsoNormal"><i>play_eos</i></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Any idea of that</p>
</div>
<font face="Arial" color="Gray" size="2">Tyco Safety Products/CEM Systems Ltd.</font>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
This e-mail contains privileged and confidential information intended for the use of the addressees named above. If you are not the intended recipient of this e-mail, you are hereby notified that you must not disseminate, copy or take any action in respect
of any information contained in it. If you have received this e-mail in error, please notify the sender immediately by e-mail and immediately destroy this e-mail and its attachments.<br>
</font>
</body>
</html>