mpeg4videoparse: ensure buffer metadata is writable before modifying it

https://bugzilla.gnome.org/show_bug.cgi?id=637824
This commit is contained in:
Tim-Philipp Müller 2010-12-22 21:44:47 +00:00
parent bcb8eab616
commit e29a1073b1

View file

@ -502,6 +502,7 @@ gst_mpeg4vparse_push (GstMpeg4VParse * parse, gsize size)
GstBuffer *out_buf;
out_buf = gst_adapter_take_buffer (parse->adapter, parse->offset);
out_buf = gst_buffer_make_metadata_writable (out_buf);
GST_BUFFER_TIMESTAMP (out_buf) = parse->timestamp;
if (G_LIKELY (out_buf)) {