<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-cite-prefix">Le 2014-12-31 04:32, frank82 a écrit :<br>
    </div>
    <blockquote cite="mid:1420018320482-4670063.post@n4.nabble.com"
      type="cite">
      <pre wrap="">Thank you for the answer, it seems to be very useful for my purpose. I have
some problem to understand how GstRtpBuffer could be used, can you share an
example just to understand how to use it?
thank you again.

</pre>
    </blockquote>
    <br>
    Simply allocate GstRtpBuffer on the stack, and then use
    gst_rtp_buffer_map/unmap() methods.<br>
    <br>
    function(buffer)<br>
    {<br>
      GstRtpBuffer rtp_buf;<br>
    <br>
      gst_rtp_buffer_map (buffer, GST_MAP_READWRITE, &rtp_buf);<br>
    <br>
      ...<br>
    <br>
      at this point you can call method like 
    gst_rtp_buffer_add_extension_onebyte_header
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    () to modify the<br>
      RTP buffer. When done, you must unmap the buffer otherwise the
    buffer will be left unusable.<br>
    <br>
      ...<br>
    <br>
      gst_rtp_buffer_unmap (&rtp_buf)l
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <br>
    }<br>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </body>
</html>