Commit 651de006 authored by Martin Storsjö's avatar Martin Storsjö

omxil: Don't log errors if there actually weren't any

This fixes stray log warnings when using audio decoders, since
4edfa4f5.
Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent eb613c15
...@@ -421,7 +421,7 @@ static OMX_ERRORTYPE SetPortDefinition(decoder_t *p_dec, OmxPort *p_port, ...@@ -421,7 +421,7 @@ static OMX_ERRORTYPE SetPortDefinition(decoder_t *p_dec, OmxPort *p_port,
if (def->eDir == OMX_DirInput) { if (def->eDir == OMX_DirInput) {
CHECK_ERROR(omx_error, "SetAudioParameters failed (%x : %s)", CHECK_ERROR(omx_error, "SetAudioParameters failed (%x : %s)",
omx_error, ErrorToString(omx_error)); omx_error, ErrorToString(omx_error));
} else { } else if (omx_error != OMX_ErrorNone) {
msg_Warn(p_dec, "SetAudioParameters failed (%x : %s) on output port", msg_Warn(p_dec, "SetAudioParameters failed (%x : %s) on output port",
omx_error, ErrorToString(omx_error)); omx_error, ErrorToString(omx_error));
omx_error = OMX_ErrorNone; 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