From b993b8457d2e9dbbc0d88810980dbf433685f3d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Fri, 27 Jan 2012 12:55:45 +0100 Subject: [PATCH] rtpcbuffer: To write inside a RTCP buffer, you must be able to read So always require read --- gst-libs/gst/rtp/gstrtcpbuffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/rtp/gstrtcpbuffer.c b/gst-libs/gst/rtp/gstrtcpbuffer.c index c12fa41c61..5d70c17a8f 100644 --- a/gst-libs/gst/rtp/gstrtcpbuffer.c +++ b/gst-libs/gst/rtp/gstrtcpbuffer.c @@ -254,6 +254,7 @@ gst_rtcp_buffer_map (GstBuffer * buffer, GstMapFlags flags, g_return_val_if_fail (rtcp != NULL, FALSE); g_return_val_if_fail (rtcp->buffer == NULL, FALSE); g_return_val_if_fail (GST_IS_BUFFER (buffer), FALSE); + g_return_val_if_fail (flags & GST_MAP_READ, FALSE); rtcp->buffer = buffer; gst_buffer_map (buffer, &rtcp->map, flags);