mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
omxh264enc: raise a warning if AVCIntraPeriod is not supported
Some platforms may not implement OMX_IndexConfigVideoAVCIntraPeriod and use OMX_IndexParamVideoAvc instead to configure the GOP pattern. So raise a warning instead of an error if this API is not implemented. https://bugzilla.gnome.org/show_bug.cgi?id=784379
This commit is contained in:
parent
ebeae6d869
commit
8e0dc1d89d
1 changed files with 5 additions and 1 deletions
|
@ -434,7 +434,11 @@ set_avc_intra_period (GstOMXH264Enc * self)
|
|||
err =
|
||||
gst_omx_component_get_parameter (GST_OMX_VIDEO_ENC (self)->enc,
|
||||
OMX_IndexConfigVideoAVCIntraPeriod, &config_avcintraperiod);
|
||||
if (err != OMX_ErrorNone) {
|
||||
if (err == OMX_ErrorUnsupportedIndex) {
|
||||
GST_WARNING_OBJECT (self,
|
||||
"OMX_IndexConfigVideoAVCIntraPeriod not supported by component");
|
||||
return TRUE;
|
||||
} else if (err != OMX_ErrorNone) {
|
||||
GST_ERROR_OBJECT (self,
|
||||
"can't get OMX_IndexConfigVideoAVCIntraPeriod %s (0x%08x)",
|
||||
gst_omx_error_to_string (err), err);
|
||||
|
|
Loading…
Reference in a new issue