rtpcbuffer: To write inside a RTCP buffer, you must be able to read

So always require read
This commit is contained in:
Olivier Crête 2012-01-27 12:55:45 +01:00
parent 6b559a50fb
commit b993b8457d

View file

@ -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 != NULL, FALSE);
g_return_val_if_fail (rtcp->buffer == 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 (GST_IS_BUFFER (buffer), FALSE);
g_return_val_if_fail (flags & GST_MAP_READ, FALSE);
rtcp->buffer = buffer; rtcp->buffer = buffer;
gst_buffer_map (buffer, &rtcp->map, flags); gst_buffer_map (buffer, &rtcp->map, flags);