From 28a4a80e0e3fd9c897559781fd34e619e9eaaf91 Mon Sep 17 00:00:00 2001 From: Marten Richter Date: Thu, 31 Oct 2013 08:26:25 +0100 Subject: [PATCH] Fix muting bug, reported by dingo35 --- audioomx.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/audioomx.cc b/audioomx.cc index fda3b17..09a66ea 100644 --- a/audioomx.cc +++ b/audioomx.cc @@ -953,6 +953,10 @@ int AudioOMX::AllocateCodecsOMX() } omx_rend_input_port = p_param.nStartPortNumber; + + + + error = OMX_GetParameter(omx_aud_rend, OMX_IndexParamOtherInit, &p_param); if (error != OMX_ErrorNone) { Log::getInstance()->log("Audio", Log::DEBUG, @@ -965,6 +969,8 @@ int AudioOMX::AllocateCodecsOMX() omx_rend_clock_port = p_param.nStartPortNumber; + + /* error=OMX_GetHandle(&omx_aud_dec,VPE_OMX_AUDIO_DECODER,NULL,&callbacks); if (error!=OMX_ErrorNone){ @@ -1114,6 +1120,7 @@ int AudioOMX::AllocateCodecsOMX() video->UnlockClock(); omx_running=true; setVolume(volume); + doMuting(); video->clockUnpause(); @@ -1425,6 +1432,7 @@ int AudioOMX::mute() { Log::getInstance()->log("Audio", Log::DEBUG, "Set OMX_IndexConfigAudioMute failed %x %d", error, omx_rend_input_port); + vw->UnlockClock(); return 0; } @@ -1456,6 +1464,7 @@ int AudioOMX::unMute() Log::getInstance()->log("Audio", Log::DEBUG, "Set OMX_IndexConfigAudioMute failed %x %d", error, omx_rend_input_port); + vw->UnlockClock(); return 0; } } @@ -1531,6 +1540,7 @@ int AudioOMX::setVolume(int tvolume) Log::getInstance()->log("Audio", Log::DEBUG, "Set OMX_IndexConfigAudioVolume failed %x %d", error, omx_rend_input_port); + vw->UnlockClock(); return 0; } -- 2.39.5