diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-11-28 19:36:56 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-11-29 12:18:19 +0100 |
commit | b0000b904149db3c833cbd1b82625cf70c773aaa (patch) | |
tree | d8b63aef687a8b41a585c41f5a708f35809ff198 /gst-libs | |
parent | 4501412af3e2bf7111c7e0020478320de841c76e (diff) |
basevideoencoder: Make headers metadata writable before pushing downstream
The timestamp, duration, etc of the headers has to be changed.
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/video/gstbasevideoencoder.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/video/gstbasevideoencoder.c b/gst-libs/gst/video/gstbasevideoencoder.c index 5107f69db..15fba3ce4 100644 --- a/gst-libs/gst/video/gstbasevideoencoder.c +++ b/gst-libs/gst/video/gstbasevideoencoder.c @@ -937,6 +937,7 @@ gst_base_video_encoder_finish_frame (GstBaseVideoEncoder * base_video_encoder, GST_DEBUG_OBJECT (base_video_encoder, "force_keyframe_headers"); if (base_video_encoder->headers) { headers = gst_buffer_ref (base_video_encoder->headers); + headers = gst_buffer_make_writable (headers); } base_video_encoder->force_keyframe_headers = FALSE; } |