<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body style="zoom:1">
some interesting progress..<br>
<br>
here is my code <br>
<br>
<br>
static GstFlowReturn IntelMediaDecodeChain(GstPad *pPad, GstBuffer *income_buffer)<br>
{<br>
GstFlowReturn ret = GST_FLOW_OK;<br>
MediaDecode*decode_if = (MediaDecode*) (GST_OBJECT_PARENT(pPad));<br>
MediaDecodeImpl* pImpl = decode_if->pImpl;<br>
GstBuffer *outgoing_buffer = 0;<br>
bool bResult = pImpl->DecodeFunc(income_buffer, &outgoing_buffer);<br>
if( bResult == true )<br>
{<br>
gst_buffer_unref(income_buffer);<br>
assert(outgoing_buffer);<br>
gst_buffer_set_caps(outgoing_buffer, GST_PAD_CAPS(decode _if->srcpad));<br>
ret = gst_pad_push(decode _if->srcpad, outgoing_buffer );<font color="#ff0000"> <= If I replace outgoing_buffer with income_buffer, the whole pipleline will work.</font><br>
TRACE("gst_pad_push returning result: " << ret);<br>
}<br>
return ret;<br>
}<br>
<br>
And I find if i pass the income_buffer to the pipeline, it works fine, it must be some thing wrong with my new create GstBuffer or I forget to set some thing for the buffer.<br>
<br>
________________________________________<br>
From: Shi, John<br>
Sent: 17 November 2013 08:42<br>
To: Discussion of the development of and with GStreamer<br>
Subject: RE: couldnt pass the GstBuffer to the srcpad.<br>
<br>
________________________________________<br>
From: gstreamer-devel-bounces@lists.freedesktop.org [gstreamer-devel-bounces@lists.freedesktop.org] on behalf of Shi, John<br>
Sent: 15 November 2013 15:46<br>
To: gstreamer-devel@lists.freedesktop.org<br>
Subject: RE: couldnt pass the GstBuffer to the srcpad.<br>
<br>
Thanks, I thinkg we use stand rtp payload, and we pass the new create Gstbuffer to the next element (rtph264pay) but looks they are not happy.<br>
<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: gstreamer-devel-bounces@lists.freedesktop.org [mailto:gstreamer-devel-bounces@lists.freedesktop.org] On Behalf Of Tim Müller<br>
Sent: 15 November 2013 11:42<br>
To: gstreamer-devel@lists.freedesktop.ortprg<br>
Subject: Re: couldnt pass the GstBuffer to the srcpad.<br>
<br>
On Fri, 2013-11-15 at 10:27 +0000, Shi, John wrote:<br>
<br>
> We create a new Gstelement and basically it will process the video<br>
> frame and pass it to another element.<br>
<br>
It would help to have a little bit more information, e.g. what's the next element, what media types are involved.<br>
<br>
> But when we call gst_pad_push function I get function return -5 error<br>
> code. And here is the Debug information when GST_DEBUG=4<br>
><br>
><br>
> gstreamer: basertppayload<br>
> gstbasertppayload.c:762:gst_basertppayload_prepare_push error:<br>
> subclass did not specify clock-rate<br>
><br>
> gst_pad_push returning result: result: -5<br>
><br>
> 0x89a310 : Element doesn't implement handling of this stream. Please<br>
> file a bug.<br>
<br>
It would help to know what the exact elements involved are, and what exact version of things you're using.<br>
<br>
Is this an rtp payloader you have written yourself or an existing one?<br>
<br>
Cheers<br>
-Tim<br>
<br>
--<br>
Tim Müller, Centricular Ltd - http://www.centricular.com<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
gstreamer-devel@lists.freedesktop.org<br>
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br>
Tyco Safety Products/CEM Systems Ltd.<br>
<br>
________________________________<br>
<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>
_______________________________________________<br>
gstreamer-devel mailing list<br>
gstreamer-devel@lists.freedesktop.org<br>
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br>
<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>