vlc | branch: master | Martin Storsjö <[email protected]> | Mon Dec 19 17:03:01 2011 +0200| [9639b545847f2fc2fd7f87993134d72835627630] | committer: Jean-Baptiste Kempf
omxil: Fix a sanity check that only is relevant for video streams Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9639b545847f2fc2fd7f87993134d72835627630 --- modules/codec/omxil/omxil.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c index 56a0c52..763a35e 100644 --- a/modules/codec/omxil/omxil.c +++ b/modules/codec/omxil/omxil.c @@ -1035,9 +1035,9 @@ static OMX_ERRORTYPE PortReconfigure(decoder_t *p_dec, OmxPort *p_port) definition.nPortIndex = p_port->i_port_index; omx_error = OMX_GetParameter(p_dec->p_sys->omx_handle, OMX_IndexParamPortDefinition, &definition); - if(omx_error != OMX_ErrorNone || - !definition.format.video.nFrameWidth || - !definition.format.video.nFrameHeight ) + if(omx_error != OMX_ErrorNone || (p_dec->fmt_in.i_cat == VIDEO_ES && + (!definition.format.video.nFrameWidth || + !definition.format.video.nFrameHeight)) ) return OMX_ErrorUndefined; omx_error = OMX_SendCommand( p_sys->omx_handle, OMX_CommandPortDisable, _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
