Custom GstMeta data dissapearing when received in a new pipeline
debruyn
debruynels1 at gmail.com
Thu Jun 30 06:53:19 UTC 2016
Morning Guys, so i got the buffer to be mapped to a RTP buffer successfully
and all in C++, Tim you memset also worked so added that. So now I am
setting my one_byte_header and it seems to set, but its is spewing out
Gstreamer-Critical messages again.
how the buffer probe code looks:
CamPipeline *oPipeObject = (CamPipeline*) _gstData;
GstBuffer *gstBuffer = GST_PAD_PROBE_INFO_BUFFER(_gstProbeInfo);
GstRTPBuffer rtpBuffer;
memset (&rtpBuffer, 0, sizeof(GstRTPBuffer));
if(gstBuffer != NULL)
{
if(gst_rtp_buffer_map(gstBuffer,(GstMapFlags)GST_MAP_READWRITE,&rtpBuffer))
{
guint8 uiID = 1;
int iSiteID = 5;
gpointer pData = &iSiteID;
gst_rtp_buffer_set_extension(&rtpBuffer,TRUE);
if(gst_rtp_buffer_add_extension_onebyte_header(&rtpBuffer,uiID,pData,sizeof(int)))
{
oPipeObject->debug("Extension header set");
}
else
{
oPipeObject->debug("Extension not set");
}
}
}
gst_rtp_buffer_unmap(&rtpBuffer);
return GST_PAD_PROBE_OK;
My error messages while nothing crashes:
** (cdd:12195): CRITICAL **: gst_rtp_buffer_unmap: assertion 'rtp->buffer !=
NULL' failed
(cdd:12195): GStreamer-CRITICAL **: gst_buffer_remove_memory_range:
assertion 'GST_IS_BUFFER (buffer)' failed
** (cdd:12195): CRITICAL **: gst_rtp_buffer_map: assertion 'GST_IS_BUFFER
(buffer)' failed
(cdd:12195): GStreamer-CRITICAL **: gst_buffer_insert_memory: assertion
'GST_IS_BUFFER (buffer)' failed
1467271500 DEBUG CamPipeline : Extension header set
** (cdd:12195): CRITICAL **: gst_rtp_buffer_unmap: assertion 'rtp->buffer !=
NULL' failed
(cdd:12195): GStreamer-CRITICAL **: gst_buffer_remove_memory_range:
assertion 'GST_IS_BUFFER (buffer)' failed
** (cdd:12195): CRITICAL **: gst_rtp_buffer_map: assertion 'GST_IS_BUFFER
(buffer)' failed
(cdd:12195): GStreamer-CRITICAL **: gst_buffer_insert_memory: assertion
'GST_IS_BUFFER (buffer)' failed
1467271500 DEBUG CamPipeline : Extension header set
Any reason why this is happening?
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Custom-GstMeta-data-dissapearing-when-received-in-a-new-pipeline-tp4678272p4678323.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list