msdkvpp: don't return GST_FLOW_ERROR for MFX_WRN_INCOMPATIBLE_VIDEO_PARAM

Returning MFX_WRN_INCOMPATIBLE_VIDEO_PARAM means MSDK detects some
incompatible parameters but it is resolved, and we may not regard
MFX_WRN_INCOMPATIBLE_VIDEO_PARAM as a fatal error. In this fix,
GST_FLOW_OK is returned but with a warning message so that a pipeline
may run to the end.
This commit is contained in:
Haihao Xiang 2019-08-19 12:30:30 +08:00 committed by Víctor Manuel Jáquez Leal
parent c941db0c2e
commit ffa82e07a7

View file

@ -735,7 +735,10 @@ gst_msdkvpp_transform (GstBaseTransform * trans, GstBuffer * inbuf,
g_usleep (1000); g_usleep (1000);
}; };
if (status != MFX_ERR_NONE && status != MFX_ERR_MORE_DATA if (status == MFX_WRN_INCOMPATIBLE_VIDEO_PARAM)
GST_WARNING_OBJECT (thiz, "VPP returned: %s",
msdk_status_to_string (status));
else if (status != MFX_ERR_NONE && status != MFX_ERR_MORE_DATA
&& status != MFX_ERR_MORE_SURFACE) && status != MFX_ERR_MORE_SURFACE)
goto vpp_error; goto vpp_error;