omxvideoenc: If one parameter/configuration is not supported don't skip the next

This commit is contained in:
Sebastian Dröge 2011-10-04 10:56:33 +02:00
parent 37967b4316
commit ac8085dce9

View file

@ -365,7 +365,6 @@ gst_omx_video_enc_open (GstOMXVideoEnc * self)
if (err == OMX_ErrorUnsupportedIndex) {
GST_WARNING_OBJECT (self,
"Setting a bitrate not supported by the component");
goto done;
} else if (err != OMX_ErrorNone) {
GST_ERROR_OBJECT (self, "Failed to set bitrate parameters: %s (0x%08x)",
gst_omx_error_to_string (err), err);
@ -384,7 +383,6 @@ gst_omx_video_enc_open (GstOMXVideoEnc * self)
if (err == OMX_ErrorUnsupportedIndex) {
GST_WARNING_OBJECT (self,
"Setting quantization parameters not supported by the component");
goto done;
} else if (err != OMX_ErrorNone) {
GST_ERROR_OBJECT (self,
"Failed to set quantization parameters: %s (0x%08x)",
@ -392,7 +390,6 @@ gst_omx_video_enc_open (GstOMXVideoEnc * self)
return FALSE;
}
}
done:
return TRUE;
}