[gstreamer-bugs] [Bug 321451] New: GstRtpBuffer: no way to create a sub buffer with only the payload data

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Mon Nov 14 09:32:25 PST 2005


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=321451
 GStreamer | gst-plugins-base | Ver: HEAD CVS

           Summary: GstRtpBuffer: no way to create a sub buffer with only
                    the payload data
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: sebas642 at yahoo.ca
         QAContact: gstreamer-bugs at lists.sourceforge.net
                CC: all-bugs at bugzilla.gnome.org


GstRtpBuffer allows access the the payload only through the function:
   gpointer gst_rtpbuffer_get_payload (GstBuffer *buffer)

This doesn't allow to create a subbuffer that contains the payload data without
doing a copy. We need a function that returns a subbuffer which contains only
the payload data. This would prevent useless copying of data like the following
(taken from gstrtpg711dec.c):

  payload_len = gst_rtpbuffer_get_payload_len (buf);
  payload = gst_rtpbuffer_get_payload (buf);

  outbuf = gst_buffer_new_and_alloc (payload_len);
  memcpy (GST_BUFFER_DATA (outbuf), payload, payload_len);

------- You are receiving this mail because: -------
You are the assignee for the bug.
You are the QA contact for the bug.




More information about the Gstreamer-bugs mailing list