mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
gstomxvideoenc: fix subframe output_buffer
Using more than 1 subframes was failing with frame->output_buffer = NULL
This commit is contained in:
parent
c2ddd4c710
commit
7d5175a80f
1 changed files with 1 additions and 1 deletions
|
@ -1519,9 +1519,9 @@ gst_omx_video_enc_handle_output_frame (GstOMXVideoEnc * self, GstOMXPort * port,
|
|||
}
|
||||
|
||||
if (frame) {
|
||||
frame->output_buffer = outbuf;
|
||||
if ((buf->omx_buf->nFlags & OMX_BUFFERFLAG_ENDOFFRAME)
|
||||
|| !gst_omx_port_get_subframe (self->enc_out_port)) {
|
||||
frame->output_buffer = outbuf;
|
||||
flow_ret =
|
||||
gst_video_encoder_finish_frame (GST_VIDEO_ENCODER (self), frame);
|
||||
if (!(buf->omx_buf->nFlags & OMX_BUFFERFLAG_ENDOFFRAME))
|
||||
|
|
Loading…
Reference in a new issue