basevideoencoder: Make headers metadata writable before pushing downstream

The timestamp, duration, etc of the headers has to be changed.
This commit is contained in:
Sebastian Dröge 2011-11-28 19:36:56 +01:00
parent 4501412af3
commit b0000b9041

View file

@ -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;
}