[vlc-devel] [PATCH 1/3] omxil: fix variable shadowing
Lyndon Brown
jnqnfe at gmail.com
Mon Sep 28 01:33:26 CEST 2020
From: Lyndon Brown <jnqnfe at gmail.com>
Date: Fri, 26 Apr 2019 10:32:01 +0100
Subject: omxil: fix variable shadowing
diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c
index 5f3a5370b3..7a8883b34b 100644
--- a/modules/codec/omxil/omxil.c
+++ b/modules/codec/omxil/omxil.c
@@ -631,12 +631,12 @@ static OMX_ERRORTYPE DeinitialiseComponent(decoder_t *p_dec,
OMX_StateIdle, 0 );
CHECK_ERROR(omx_error, "OMX_CommandStateSet Idle failed (%x)", omx_error );
while (1) {
- OMX_U32 cmd, state;
- omx_error = WaitForSpecificOmxEvent(&p_sys->event_queue, OMX_EventCmdComplete, &cmd, &state, 0);
+ OMX_U32 cmd, waitstate;
+ omx_error = WaitForSpecificOmxEvent(&p_sys->event_queue, OMX_EventCmdComplete, &cmd, &waitstate, 0);
CHECK_ERROR(omx_error, "Wait for Idle failed (%x)", omx_error );
// The event queue can contain other OMX_EventCmdComplete items,
// such as for OMX_CommandFlush
- if (cmd == OMX_CommandStateSet && state == OMX_StateIdle)
+ if (cmd == OMX_CommandStateSet && waitstate == OMX_StateIdle)
break;
}
}
More information about the vlc-devel
mailing list