summaryrefslogtreecommitdiff
path: root/gst/rtpmanager/rtpsource.h
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-12-22 22:27:21 +0100
committerWim Taymans <wim@metal.(none)>2009-12-22 22:27:21 +0100
commit05418f16874aa101cdff4907f3840513e8de05cd (patch)
treea13636aa05fc2b602cbc4906b372ad8f6fa7e396 /gst/rtpmanager/rtpsource.h
parentc3448f978e16e29cc92133edcaea2c9285d35277 (diff)
rtpbin: avoid some structure copies
Don't make copied in the getter and setter for SDES in the RTPSource. This avoids a couple of copies of the SDES structure when generating RTCP packets.
Diffstat (limited to 'gst/rtpmanager/rtpsource.h')
-rw-r--r--gst/rtpmanager/rtpsource.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/rtpmanager/rtpsource.h b/gst/rtpmanager/rtpsource.h
index 5271d541c..b0c9bd0c4 100644
--- a/gst/rtpmanager/rtpsource.h
+++ b/gst/rtpmanager/rtpsource.h
@@ -181,8 +181,9 @@ void rtp_source_update_caps (RTPSource *src, GstCaps *caps);
gboolean rtp_source_set_sdes_string (RTPSource *src, GstRTCPSDESType type,
const gchar *data);
gchar* rtp_source_get_sdes_string (RTPSource *src, GstRTCPSDESType type);
-GstStructure * rtp_source_get_sdes_struct (RTPSource * src);
-gboolean rtp_source_set_sdes_struct (RTPSource * src, const GstStructure *sdes);
+const GstStructure *
+ rtp_source_get_sdes_struct (RTPSource * src);
+gboolean rtp_source_set_sdes_struct (RTPSource * src, GstStructure *sdes);
/* handling network address */
void rtp_source_set_rtp_from (RTPSource *src, GstNetAddress *address);