mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 21:35:44 +00:00
basevideoencoder: Pass the all-headers field of the force-key-unit event to the subclass
This commit is contained in:
parent
de6782cce4
commit
e98b17a8dc
2 changed files with 2 additions and 0 deletions
|
@ -134,6 +134,7 @@ struct _GstVideoFrame
|
|||
GstClockTime deadline;
|
||||
|
||||
gboolean force_keyframe;
|
||||
gboolean force_keyframe_headers;
|
||||
|
||||
/* Events that should be pushed downstream *before*
|
||||
* the next src_buffer */
|
||||
|
|
|
@ -859,6 +859,7 @@ gst_base_video_encoder_chain (GstPad * pad, GstBuffer * buf)
|
|||
"Forcing a key unit at running time %" GST_TIME_FORMAT,
|
||||
GST_TIME_ARGS (running_time));
|
||||
frame->force_keyframe = TRUE;
|
||||
frame->force_keyframe_headers = fevt->all_headers;
|
||||
fevt->pending = TRUE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue