]> git.sesse.net Git - vlc/commitdiff
omxil: Don't log errors if there actually weren't any
authorMartin Storsjö <martin@martin.st>
Sun, 17 Feb 2013 18:19:04 +0000 (20:19 +0200)
committerMartin Storsjö <martin@martin.st>
Sun, 17 Feb 2013 19:46:35 +0000 (21:46 +0200)
This fixes stray log warnings when using audio decoders, since
4edfa4f5fb99.

Signed-off-by: Martin Storsjö <martin@martin.st>
modules/codec/omxil/omxil.c

index 740ae4742b33c0e5708025fb9134f6b2826820ec..b587a1884edc78cedc82730ed107911f0d103ca8 100644 (file)
@@ -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;