From 08fabd6a0793b6de1497a511b4984df2e83ff99f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 2 Nov 2011 13:22:50 +0100 Subject: [PATCH] omxvideoenc: Make unsupported bitrate/quantizer settings less fatal --- omx/gstomxvideoenc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c index e8a1dbd..230063b 100644 --- a/omx/gstomxvideoenc.c +++ b/omx/gstomxvideoenc.c @@ -370,6 +370,10 @@ gst_omx_video_enc_open (GstOMXVideoEnc * self) if (err == OMX_ErrorUnsupportedIndex) { GST_WARNING_OBJECT (self, "Setting a bitrate not supported by the component"); + } else if (err == OMX_ErrorUnsupportedSetting) { + GST_WARNING_OBJECT (self, + "Setting bitrate settings %u %u not supported by the component", + self->control_rate, self->target_bitrate); } else if (err != OMX_ErrorNone) { GST_ERROR_OBJECT (self, "Failed to set bitrate parameters: %s (0x%08x)", gst_omx_error_to_string (err), err); @@ -388,6 +392,10 @@ gst_omx_video_enc_open (GstOMXVideoEnc * self) if (err == OMX_ErrorUnsupportedIndex) { GST_WARNING_OBJECT (self, "Setting quantization parameters not supported by the component"); + } else if (err == OMX_ErrorUnsupportedSetting) { + GST_WARNING_OBJECT (self, + "Setting quantization parameters %u %u %u not supported by the component", + self->quant_i_frames, self->quant_p_frames, self->quant_b_frames); } else if (err != OMX_ErrorNone) { GST_ERROR_OBJECT (self, "Failed to set quantization parameters: %s (0x%08x)", -- 2.7.4