Commit 818e869d authored by Thiago Santos's avatar Thiago Santos
Browse files

appsrc: Be sure that metadata is writable before setting caps

Call gst_buffer_make_metadata_writable before attempting
to set caps on the buffer.
parent e528e732
......@@ -993,6 +993,7 @@ gst_app_src_create (GstBaseSrc * bsrc, guint64 offset, guint size,
/* only update the offset when in random_access mode */
if (priv->stream_type == GST_APP_STREAM_TYPE_RANDOM_ACCESS)
priv->offset += buf_size;
*buf = gst_buffer_make_metadata_writable (*buf);
gst_buffer_set_caps (*buf, priv->caps);
/* signal that we removed an item */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment