session: don't make buffer writable prematurely

There is no reason to make the SR buffer writable at this point. This is better
delayed until needed.
This commit is contained in:
Wim Taymans 2013-07-26 22:31:41 +02:00
parent 0261199fc4
commit 02359f9219

View 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