mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-06 15:38:50 +00:00
omxvideoenc: If one parameter/configuration is not supported don't skip the next
This commit is contained in:
parent
37967b4316
commit
ac8085dce9
1 changed files with 0 additions and 3 deletions
|
@ -365,7 +365,6 @@ gst_omx_video_enc_open (GstOMXVideoEnc * self)
|
||||||
if (err == OMX_ErrorUnsupportedIndex) {
|
if (err == OMX_ErrorUnsupportedIndex) {
|
||||||
GST_WARNING_OBJECT (self,
|
GST_WARNING_OBJECT (self,
|
||||||
"Setting a bitrate not supported by the component");
|
"Setting a bitrate not supported by the component");
|
||||||
goto done;
|
|
||||||
} else if (err != OMX_ErrorNone) {
|
} else if (err != OMX_ErrorNone) {
|
||||||
GST_ERROR_OBJECT (self, "Failed to set bitrate parameters: %s (0x%08x)",
|
GST_ERROR_OBJECT (self, "Failed to set bitrate parameters: %s (0x%08x)",
|
||||||
gst_omx_error_to_string (err), err);
|
gst_omx_error_to_string (err), err);
|
||||||
|
@ -384,7 +383,6 @@ gst_omx_video_enc_open (GstOMXVideoEnc * self)
|
||||||
if (err == OMX_ErrorUnsupportedIndex) {
|
if (err == OMX_ErrorUnsupportedIndex) {
|
||||||
GST_WARNING_OBJECT (self,
|
GST_WARNING_OBJECT (self,
|
||||||
"Setting quantization parameters not supported by the component");
|
"Setting quantization parameters not supported by the component");
|
||||||
goto done;
|
|
||||||
} else if (err != OMX_ErrorNone) {
|
} else if (err != OMX_ErrorNone) {
|
||||||
GST_ERROR_OBJECT (self,
|
GST_ERROR_OBJECT (self,
|
||||||
"Failed to set quantization parameters: %s (0x%08x)",
|
"Failed to set quantization parameters: %s (0x%08x)",
|
||||||
|
@ -392,7 +390,6 @@ gst_omx_video_enc_open (GstOMXVideoEnc * self)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
done:
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue