rsndvd: ensure metadata is writable when writing to it
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 24 Aug 2011 14:32:12 +0000 (15:32 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 24 Aug 2011 15:37:30 +0000 (16:37 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=657250

ext/resindvd/rsnwrappedbuffer.c

index 6e2579c670e9c94bcd68d20d74e0eda99eb91729..516cf352c3b4fd6a53e1039fbaa25b950315fec0 100644 (file)
@@ -132,6 +132,7 @@ rsn_wrappedbuffer_unwrap_and_unref (RsnWrappedBuffer * wrap_buf)
   g_return_val_if_fail (wrap_buf->wrapped_buffer != NULL, NULL);
 
   buf = gst_buffer_ref (wrap_buf->wrapped_buffer);
+  buf = gst_buffer_make_metadata_writable (buf);
 
   /* Copy changed metadata back to the wrapped buffer from the wrapper,
    * except the the read-only flag and the caps. */