vlc | branch: master | Thomas Guillem <[email protected]> | Fri Aug 28 12:24:50 2015 +0200| [a892efd415194c0014821da20a96769afca857a1] | committer: Thomas Guillem
omxil: fail if no extra when needed > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a892efd415194c0014821da20a96769afca857a1 --- modules/codec/omxil/omxil.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c index a7aa66b..773d7b0 100644 --- a/modules/codec/omxil/omxil.c +++ b/modules/codec/omxil/omxil.c @@ -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) _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
