Commit a892efd4 authored by Thomas Guillem's avatar Thomas Guillem

omxil: fail if no extra when needed

parent 15a6b6ec
......@@ -840,6 +840,13 @@ static OMX_ERRORTYPE InitialiseComponent(decoder_t *p_dec,
p_sys->b_enc ? p_dec->fmt_out.i_codec : p_dec->fmt_in.i_codec,
p_sys->psz_component,
strlen(p_sys->psz_component));
if ((i_quirks & OMXCODEC_QUIRKS_NEED_CSD)
&& !p_dec->fmt_in.i_extra)
{
/* TODO handle late configuration */
msg_Warn( p_dec, "codec need CSD" );
return OMX_ErrorUndefined;
}
omx_error = OMX_ComponentRoleEnum(omx_handle, psz_role, 0);
if(omx_error == OMX_ErrorNone)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment