omxvideoenc: fix buffer size in debug log

Use the actual OMX buffer size rather than the info.size as OMX
may require larger buffer if the port requires some padding.
This commit is contained in:
Guillaume Desmottes 2019-05-30 11:11:34 +05:30
parent e8a4500d75
commit 611f37c2ae

View file

@ -3193,8 +3193,8 @@ gst_omx_video_enc_propose_allocation (GstVideoEncoder * encoder,
#endif
GST_DEBUG_OBJECT (self,
"request at least %d buffers of size %" G_GSIZE_FORMAT, num_buffers,
info.size);
"request at least %d buffers of size %d", num_buffers,
(guint) self->enc_in_port->port_def.nBufferSize);
gst_query_add_allocation_pool (query, pool,
self->enc_in_port->port_def.nBufferSize, num_buffers, 0);