buffer =gst_buffer_new_allocate(NULL, kp->nbytes,NULL);if(G_UNLIKELY (!buffer)) { GST_WARNING_OBJECT (ke,"Failed to allocate buffer for %u bytes", (guint) kp->nbytes);returnNULL; } gst_buffer_fill (buffer,0, kp->data, kp->nbytes);/* same system as other Ogg codecs, as per...
GstRTPBuffer rtp = GST_RTP_BUFFER_INIT; gsize size =10; buf =gst_rtp_buffer_new_allocate(size,0,0); GST_BUFFER_DTS (buf) = GST_MSECOND *20* seq_num; GST_BUFFER_PTS (buf) = GST_MSECOND *20* seq_num; gst_rtp_buffer_map (buf, GST_MAP_READWRITE, &rtp); gst_rtp_buffer_s...