basevideoencoder: Pass the all-headers field of the force-key-unit event to the subclass
This commit is contained in:
parent
de6782cce4
commit
e98b17a8dc
@ -134,6 +134,7 @@ struct _GstVideoFrame
|
|||||||
GstClockTime deadline;
|
GstClockTime deadline;
|
||||||
|
|
||||||
gboolean force_keyframe;
|
gboolean force_keyframe;
|
||||||
|
gboolean force_keyframe_headers;
|
||||||
|
|
||||||
/* Events that should be pushed downstream *before*
|
/* Events that should be pushed downstream *before*
|
||||||
* the next src_buffer */
|
* 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,
|
"Forcing a key unit at running time %" GST_TIME_FORMAT,
|
||||||
GST_TIME_ARGS (running_time));
|
GST_TIME_ARGS (running_time));
|
||||||
frame->force_keyframe = TRUE;
|
frame->force_keyframe = TRUE;
|
||||||
|
frame->force_keyframe_headers = fevt->all_headers;
|
||||||
fevt->pending = TRUE;
|
fevt->pending = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user