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

Commit 0c465cf0 authored by Linus Nilsson's avatar Linus Nilsson
Browse files

Transcoder: Remove high priority thread from transcoder library.

Use the default thread priority for all transcoder library threads.
Note that this does not impact any codec framework threads.

Bug: 183751395
Test: build_and_run_all_unit_tests.sh
Change-Id: I639085e5cd5a2f379ef852e6cdd7b8a780580c6c
parent 02ebd761
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -21,7 +21,6 @@
#include <android-base/properties.h>
#include <android-base/properties.h>
#include <media/NdkCommon.h>
#include <media/NdkCommon.h>
#include <media/VideoTrackTranscoder.h>
#include <media/VideoTrackTranscoder.h>
#include <utils/AndroidThreads.h>


using namespace AMediaFormatUtils;
using namespace AMediaFormatUtils;


@@ -589,8 +588,6 @@ void VideoTrackTranscoder::updateTrackFormat(AMediaFormat* outputFormat, bool fr
}
}


media_status_t VideoTrackTranscoder::runTranscodeLoop(bool* stopped) {
media_status_t VideoTrackTranscoder::runTranscodeLoop(bool* stopped) {
    androidSetThreadPriority(0 /* tid (0 = current) */, ANDROID_PRIORITY_VIDEO);

    // Push start decoder and encoder as two messages, so that these are subject to the
    // Push start decoder and encoder as two messages, so that these are subject to the
    // stop request as well. If the session is cancelled (or paused) immediately after start,
    // stop request as well. If the session is cancelled (or paused) immediately after start,
    // we don't need to waste time start then stop the codecs.
    // we don't need to waste time start then stop the codecs.