Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b1bbc47 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mm-audio: omx: post error to omx during SSR"

parents b15022dc 6fbf6887
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -4208,6 +4208,16 @@ OMX_ERRORTYPE omx_aac_aenc::fill_this_buffer_proxy
               buffer->nOffset = 0;
               buffer->nTimeStamp = nTimestamp;
               frame_done_cb((OMX_BUFFERHEADERTYPE *)buffer);

               if (errno == ENETRESET)
               {
                   ALOGE("In SSR, return error to close the session");
                   m_cb.EventHandler(&m_cmp,
                       m_app_data,
                      OMX_EventError,
                      OMX_ErrorHardware,
                      0, NULL );
               }
               return OMX_ErrorNone;
           }
        }