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

Commit 1753209c authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Remove multiple calls to removeAudioDeviceCallback()"

parents 72d6d8ec 01d07f4d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -73,7 +73,6 @@ TEST(AudioTrackTest, TestPerformanceMode) {
            }
        }
        ap->stop();
        ap->getAudioTrackHandle()->removeAudioDeviceCallback(cb);
    }
}

+0 −6
Original line number Diff line number Diff line
@@ -49,17 +49,11 @@ class AudioSystemTest : public ::testing::Test {
    void TearDown() override {
        if (mPlayback) {
            mPlayback->stop();
            if (auto handle = mPlayback->getAudioTrackHandle(); handle) {
                handle->removeAudioDeviceCallback(mCbPlayback);
            }
            mCbPlayback.clear();
            mPlayback.clear();
        }
        if (mCapture) {
            mCapture->stop();
            if (auto handle = mCapture->getAudioRecordHandle(); handle) {
                handle->removeAudioDeviceCallback(mCbRecord);
            }
            mCbRecord.clear();
            mCapture.clear();
        }