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 1f3f8c9dc5
commit 050700d561

View file

@ -927,6 +927,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;
}