From: Guillaume Desmottes Date: Wed, 17 Jan 2018 09:40:49 +0000 (+0100) Subject: omxvideoenc: display the computed buffer size when configuring input X-Git-Tag: 1.16.2~109 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2570512cf00f473e6f05e9f1e1ce05ae3f707fd;p=platform%2Fupstream%2Fgst-omx.git omxvideoenc: display the computed buffer size when configuring input https://bugzilla.gnome.org/show_bug.cgi?id=793694 --- diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c index c9a39c0..b287b98 100644 --- a/omx/gstomxvideoenc.c +++ b/omx/gstomxvideoenc.c @@ -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;