couldnt pass the GstBuffer to the srcpad.
Shi, John
johnshi at tycoint.com
Sun Nov 17 00:47:44 PST 2013
some interesting progress..
here is my code
static GstFlowReturn IntelMediaDecodeChain(GstPad *pPad, GstBuffer *income_buffer)
{
GstFlowReturn ret = GST_FLOW_OK;
MediaDecode*decode_if = (MediaDecode*) (GST_OBJECT_PARENT(pPad));
MediaDecodeImpl* pImpl = decode_if->pImpl;
GstBuffer *outgoing_buffer = 0;
bool bResult = pImpl->DecodeFunc(income_buffer, &outgoing_buffer);
if( bResult == true )
{
gst_buffer_unref(income_buffer);
assert(outgoing_buffer);
gst_buffer_set_caps(outgoing_buffer, GST_PAD_CAPS(decode _if->srcpad));
ret = gst_pad_push(decode _if->srcpad, outgoing_buffer ); <= If I replace outgoing_buffer with income_buffer, the whole pipleline will work.
TRACE("gst_pad_push returning result: " << ret);
}
return ret;
}
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.
________________________________________
From: Shi, John
Sent: 17 November 2013 08:42
To: Discussion of the development of and with GStreamer
Subject: RE: couldnt pass the GstBuffer to the srcpad.
________________________________________
From: gstreamer-devel-bounces at lists.freedesktop.org [gstreamer-devel-bounces at lists.freedesktop.org] on behalf of Shi, John
Sent: 15 November 2013 15:46
To: gstreamer-devel at lists.freedesktop.org
Subject: RE: couldnt pass the GstBuffer to the srcpad.
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.
-----Original Message-----
From: gstreamer-devel-bounces at lists.freedesktop.org [mailto:gstreamer-devel-bounces at lists.freedesktop.org] On Behalf Of Tim Müller
Sent: 15 November 2013 11:42
To: gstreamer-devel at lists.freedesktop.ortprg
Subject: Re: couldnt pass the GstBuffer to the srcpad.
On Fri, 2013-11-15 at 10:27 +0000, Shi, John wrote:
> We create a new Gstelement and basically it will process the video
> frame and pass it to another element.
It would help to have a little bit more information, e.g. what's the next element, what media types are involved.
> 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
>
>
> gstreamer: basertppayload
> gstbasertppayload.c:762:gst_basertppayload_prepare_push error:
> subclass did not specify clock-rate
>
> gst_pad_push returning result: result: -5
>
> 0x89a310 : Element doesn't implement handling of this stream. Please
> file a bug.
It would help to know what the exact elements involved are, and what exact version of things you're using.
Is this an rtp payloader you have written yourself or an existing one?
Cheers
-Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Tyco Safety Products/CEM Systems Ltd.
________________________________
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.
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Tyco Safety Products/CEM Systems Ltd.
________________________________
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131117/4e6d1335/attachment-0001.html>
More information about the gstreamer-devel
mailing list