[0.11] gst-plugins-base: rtpcbuffer: To write inside a RTCP buffer, you must be able to read

Olivier Crête tester at kemper.freedesktop.org
Sat Jan 28 08:51:29 PST 2012


Module: gst-plugins-base
Branch: 0.11
Commit: b993b8457d2e9dbbc0d88810980dbf433685f3d8
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=b993b8457d2e9dbbc0d88810980dbf433685f3d8

Author: Olivier Crête <olivier.crete at collabora.com>
Date:   Fri Jan 27 12:55:45 2012 +0100

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 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gst-libs/gst/rtp/gstrtcpbuffer.c b/gst-libs/gst/rtp/gstrtcpbuffer.c
index c12fa41..5d70c17 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);



More information about the gstreamer-commits mailing list