omxvideoenc: Set force_keyframe to FALSE after handling it

There's no reason why the base class should forward the event
further downstream if we already handled it and will insert a
keyframe.
This commit is contained in:
Sebastian Dröge 2011-11-16 12:02:08 -08:00
parent c99af4a32e
commit 879349ba11

View 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