basevideoencoder: Pass the all-headers field of the force-key-unit event to the subclass

This commit is contained in:
Sebastian Dröge 2011-11-29 12:12:33 +01:00
parent de6782cce4
commit e98b17a8dc
2 changed files with 2 additions and 0 deletions

View file

@ -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 */

View file

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