basevideoencoder: Pass the all-headers field of the force-key-unit event to the subclass
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 29 Nov 2011 11:12:33 +0000 (12:12 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 29 Nov 2011 11:20:09 +0000 (12:20 +0100)
omx/gstbasevideocodec.h
omx/gstbasevideoencoder.c

index 6471c35..074537a 100644 (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 */
index 45a1daa..2199d9a 100644 (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;
     }
   }