omxvideoenc: Set force_keyframe to FALSE after handling it
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 16 Nov 2011 20:02:08 +0000 (12:02 -0800)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 16 Nov 2011 20:02:08 +0000 (12:02 -0800)
There's no reason why the base class should forward the event
further downstream if we already handled it and will insert a
keyframe.

omx/gstomxvideoenc.c

index 2ee546b..49366ab 100644 (file)
@@ -1414,6 +1414,8 @@ gst_omx_video_enc_handle_frame (GstBaseVideoEncoder * encoder,
       if (err != OMX_ErrorNone)
         GST_ERROR_OBJECT (self, "Failed to force a keyframe: %s (0x%08x)",
             gst_omx_error_to_string (err), err);
+
+      frame->force_keyframe = FALSE;
     }
 
     /* Copy the buffer content in chunks of size as requested