From 458199abfbc29ca986dcdbaa74694b917522573c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 29 Nov 2011 12:12:33 +0100 Subject: [PATCH] basevideoencoder: Pass the all-headers field of the force-key-unit event to the subclass --- omx/gstbasevideocodec.h | 1 + omx/gstbasevideoencoder.c | 1 + 2 files changed, 2 insertions(+) diff --git a/omx/gstbasevideocodec.h b/omx/gstbasevideocodec.h index 6471c35..074537a 100644 --- a/omx/gstbasevideocodec.h +++ b/omx/gstbasevideocodec.h @@ -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 */ diff --git a/omx/gstbasevideoencoder.c b/omx/gstbasevideoencoder.c index 45a1daa..2199d9a 100644 --- a/omx/gstbasevideoencoder.c +++ b/omx/gstbasevideoencoder.c @@ -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; } } -- 2.7.4