mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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:
parent
0261199fc4
commit
02359f9219
1 changed files with 0 additions and 3 deletions
|
@ -2346,9 +2346,6 @@ rtp_session_process_rtcp (RTPSession * sess, GstBuffer * buffer,
|
||||||
|
|
||||||
/* notify caller of sr packets in the callback */
|
/* notify caller of sr packets in the callback */
|
||||||
if (do_sync && sess->callbacks.sync_rtcp) {
|
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,
|
result = sess->callbacks.sync_rtcp (sess, buffer,
|
||||||
sess->sync_rtcp_user_data);
|
sess->sync_rtcp_user_data);
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in a new issue