Commit f2570512 authored by Guillaume Desmottes's avatar Guillaume Desmottes 🐐 Committed by Nicolas Dufresne

omxvideoenc: display the computed buffer size when configuring input

https://bugzilla.gnome.org/show_bug.cgi?id=793694
parent 69215681
......@@ -1793,12 +1793,6 @@ gst_omx_video_enc_configure_input_buffer (GstOMXVideoEnc * self,
else
port_def.format.video.nSliceHeight = slice_height;
GST_DEBUG_OBJECT (self,
"setting input nStride=%d and nSliceHeight=%d (nBufferAlignment=%d)",
(guint) port_def.format.video.nStride,
(guint) port_def.format.video.nSliceHeight,
(guint) port_def.nBufferAlignment);
switch (port_def.format.video.eColorFormat) {
case OMX_COLOR_FormatYUV420Planar:
case OMX_COLOR_FormatYUV420PackedPlanar:
......@@ -1822,6 +1816,12 @@ gst_omx_video_enc_configure_input_buffer (GstOMXVideoEnc * self,
g_assert_not_reached ();
}
GST_DEBUG_OBJECT (self,
"setting input nStride=%d nSliceHeight=%d nBufferSize=%d (nBufferAlignment=%d)",
(guint) port_def.format.video.nStride,
(guint) port_def.format.video.nSliceHeight,
(guint) port_def.nBufferSize, (guint) port_def.nBufferAlignment);
if (gst_omx_port_update_port_definition (self->enc_in_port,
&port_def) != OMX_ErrorNone)
return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment