session: don't make buffer writable prematurely
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 26 Jul 2013 20:31:41 +0000 (22:31 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 26 Jul 2013 20:31:41 +0000 (22:31 +0200)
There is no reason to make the SR buffer writable at this point. This is better
delayed until needed.

gst/rtpmanager/rtpsession.c

index 5bd9bc3..1ab8185 100644 (file)
@@ -2346,9 +2346,6 @@ rtp_session_process_rtcp (RTPSession * sess, GstBuffer * buffer,
 
   /* notify caller of sr packets in the callback */
   if (do_sync && sess->callbacks.sync_rtcp) {
-    /* make writable, we might want to change the buffer */
-    buffer = gst_buffer_make_writable (buffer);
-
     result = sess->callbacks.sync_rtcp (sess, buffer,
         sess->sync_rtcp_user_data);
   } else