);
static GstBuffer *gst_rtp_opus_depay_process (GstRTPBaseDepayload * depayload,
- GstBuffer * buf);
+ GstRTPBuffer * rtp_buffer);
static gboolean gst_rtp_opus_depay_setcaps (GstRTPBaseDepayload * depayload,
GstCaps * caps);
"Extracts Opus audio from RTP packets",
"Danilo Cesar Lemes de Paula <danilo.cesar@collabora.co.uk>");
- gstbasertpdepayload_class->process = gst_rtp_opus_depay_process;
+ gstbasertpdepayload_class->process_rtp_packet = gst_rtp_opus_depay_process;
gstbasertpdepayload_class->set_caps = gst_rtp_opus_depay_setcaps;
GST_DEBUG_CATEGORY_INIT (rtpopusdepay_debug, "rtpopusdepay", 0,
}
static GstBuffer *
-gst_rtp_opus_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
+gst_rtp_opus_depay_process (GstRTPBaseDepayload * depayload,
+ GstRTPBuffer * rtp_buffer)
{
GstBuffer *outbuf;
- GstRTPBuffer rtpbuf = { NULL, };
- gst_rtp_buffer_map (buf, GST_MAP_READ, &rtpbuf);
- outbuf = gst_rtp_buffer_get_payload_buffer (&rtpbuf);
- gst_rtp_buffer_unmap (&rtpbuf);
+ outbuf = gst_rtp_buffer_get_payload_buffer (rtp_buffer);
- outbuf = gst_buffer_make_writable (outbuf);
gst_rtp_drop_non_audio_meta (depayload, outbuf);
return outbuf;