mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
omxvideoenc: Free/drop GstVideoFrames that resulted in an empty buffer
This commit is contained in:
parent
34da745dc5
commit
182a488f49
1 changed files with 3 additions and 3 deletions
|
@ -523,9 +523,9 @@ gst_omx_video_enc_loop (GstOMXVideoEnc * self)
|
||||||
flow_ret = gst_pad_push (GST_BASE_VIDEO_CODEC_SRC_PAD (self), outbuf);
|
flow_ret = gst_pad_push (GST_BASE_VIDEO_CODEC_SRC_PAD (self), outbuf);
|
||||||
}
|
}
|
||||||
} else if (frame != NULL) {
|
} else if (frame != NULL) {
|
||||||
/*flow_ret =
|
flow_ret =
|
||||||
gst_base_video_encoder_finish_frame (GST_BASE_VIDEO_ENCODER (self),
|
gst_base_video_encoder_finish_frame (GST_BASE_VIDEO_ENCODER (self),
|
||||||
frame); */
|
frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flow_ret == GST_FLOW_OK && (buf->omx_buf->nFlags & OMX_BUFFERFLAG_EOS))
|
if (flow_ret == GST_FLOW_OK && (buf->omx_buf->nFlags & OMX_BUFFERFLAG_EOS))
|
||||||
|
|
Loading…
Reference in a new issue