mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
basevideoencoder: Make headers metadata writable before pushing downstream
The timestamp, duration, etc of the headers has to be changed.
This commit is contained in:
parent
4501412af3
commit
b0000b9041
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue