mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-06 15:38:50 +00:00
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:
parent
c99af4a32e
commit
879349ba11
1 changed files with 2 additions and 0 deletions
|
@ -1414,6 +1414,8 @@ gst_omx_video_enc_handle_frame (GstBaseVideoEncoder * encoder,
|
||||||
if (err != OMX_ErrorNone)
|
if (err != OMX_ErrorNone)
|
||||||
GST_ERROR_OBJECT (self, "Failed to force a keyframe: %s (0x%08x)",
|
GST_ERROR_OBJECT (self, "Failed to force a keyframe: %s (0x%08x)",
|
||||||
gst_omx_error_to_string (err), err);
|
gst_omx_error_to_string (err), err);
|
||||||
|
|
||||||
|
frame->force_keyframe = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Copy the buffer content in chunks of size as requested
|
/* Copy the buffer content in chunks of size as requested
|
||||||
|
|
Loading…
Reference in a new issue