omxvideoenc: Don't output 0-byte buffers

This commit is contained in:
Sebastian Dröge 2011-07-28 09:08:38 +02:00
parent 1fa3b2662e
commit decf765502

View file

@ -511,8 +511,7 @@ gst_omx_video_enc_loop (GstOMXVideoEnc * self)
}
gst_caps_unref (caps);
flow_ret = GST_FLOW_OK;
} else if (!(buf->omx_buf->nFlags & OMX_BUFFERFLAG_EOS)
|| buf->omx_buf->nFilledLen > 0) {
} else if (buf->omx_buf->nFilledLen > 0) {
GstBuffer *outbuf;
if (buf->omx_buf->nFilledLen > 0) {