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

Commit 64698202 authored by Preetam Singh Ranawat's avatar Preetam Singh Ranawat Committed by Arne Coucheron
Browse files

mm-audio: Fix error for already destroyed mutexes.

-Avoid destruction of already destroyed mutexes.

Change-Id: I90ac8839d4f3cca66d0de356c4eb2f7d9c3b884f
parent 9bfeae6d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -436,8 +436,6 @@ omx_aac_aenc::~omx_aac_aenc()

    pthread_mutexattr_destroy(&m_out_th_attr_1);
    pthread_mutex_destroy(&m_out_th_lock_1);
    pthread_mutex_destroy(&out_buf_count_lock);
    pthread_mutex_destroy(&in_buf_count_lock);
    pthread_cond_destroy(&cond);
    pthread_cond_destroy(&in_cond);
    pthread_cond_destroy(&out_cond);
+0 −2
Original line number Diff line number Diff line
@@ -434,8 +434,6 @@ omx_amr_aenc::~omx_amr_aenc()

    pthread_mutexattr_destroy(&m_out_th_attr_1);
    pthread_mutex_destroy(&m_out_th_lock_1);
    pthread_mutex_destroy(&out_buf_count_lock);
    pthread_mutex_destroy(&in_buf_count_lock);
    pthread_cond_destroy(&cond);
    pthread_cond_destroy(&in_cond);
    pthread_cond_destroy(&out_cond);
+0 −2
Original line number Diff line number Diff line
@@ -431,8 +431,6 @@ omx_evrc_aenc::~omx_evrc_aenc()

    pthread_mutexattr_destroy(&m_out_th_attr_1);
    pthread_mutex_destroy(&m_out_th_lock_1);
    pthread_mutex_destroy(&out_buf_count_lock);
    pthread_mutex_destroy(&in_buf_count_lock);
    pthread_cond_destroy(&cond);
    pthread_cond_destroy(&in_cond);
    pthread_cond_destroy(&out_cond);