[vlc-commits] omxil: Don't log errors if there actually weren't any
Martin Storsjö
git at videolan.org
Sun Feb 17 20:47:20 CET 2013
vlc | branch: master | Martin Storsjö <martin at martin.st> | Sun Feb 17 20:19:04 2013 +0200| [651de0063078188083bd574813564624564170d3] | committer: Martin Storsjö
omxil: Don't log errors if there actually weren't any
This fixes stray log warnings when using audio decoders, since
4edfa4f5fb99.
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=651de0063078188083bd574813564624564170d3
---
modules/codec/omxil/omxil.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c
index 740ae47..b587a18 100644
--- a/modules/codec/omxil/omxil.c
+++ b/modules/codec/omxil/omxil.c
@@ -421,7 +421,7 @@ static OMX_ERRORTYPE SetPortDefinition(decoder_t *p_dec, OmxPort *p_port,
if (def->eDir == OMX_DirInput) {
CHECK_ERROR(omx_error, "SetAudioParameters failed (%x : %s)",
omx_error, ErrorToString(omx_error));
- } else {
+ } else if (omx_error != OMX_ErrorNone) {
msg_Warn(p_dec, "SetAudioParameters failed (%x : %s) on output port",
omx_error, ErrorToString(omx_error));
omx_error = OMX_ErrorNone;
More information about the vlc-commits
mailing list