mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
mpeg4videoparse: ensure buffer metadata is writable before modifying it
https://bugzilla.gnome.org/show_bug.cgi?id=637824
This commit is contained in:
parent
bcb8eab616
commit
e29a1073b1
1 changed files with 1 additions and 0 deletions
|
@ -502,6 +502,7 @@ gst_mpeg4vparse_push (GstMpeg4VParse * parse, gsize size)
|
||||||
GstBuffer *out_buf;
|
GstBuffer *out_buf;
|
||||||
|
|
||||||
out_buf = gst_adapter_take_buffer (parse->adapter, parse->offset);
|
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;
|
GST_BUFFER_TIMESTAMP (out_buf) = parse->timestamp;
|
||||||
|
|
||||||
if (G_LIKELY (out_buf)) {
|
if (G_LIKELY (out_buf)) {
|
||||||
|
|
Loading…
Reference in a new issue