if (G_UNLIKELY (dest == src))
return;
+#if GST_VERSION_NANO == 1
+ /* we enable this extra debugging in git versions only for now */
+ g_return_if_fail (gst_buffer_is_metadata_writable (dest));
+#endif
+
GST_CAT_LOG (GST_CAT_BUFFER, "copy %p to %p", src, dest);
if (flags & GST_BUFFER_COPY_FLAGS) {
gst_buffer_set_caps (GstBuffer * buffer, GstCaps * caps)
{
g_return_if_fail (buffer != NULL);
+#if GST_VERSION_NANO == 1
+ /* we enable this extra debugging in git versions only for now */
+ g_return_if_fail (gst_buffer_is_metadata_writable (buffer));
+#endif
gst_caps_replace (&GST_BUFFER_CAPS (buffer), caps);
}