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

Commit bbc285e0 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Transcoder: Remove high priority thread from transcoder library." into sc-dev

parents ff8baaa6 0c465cf0
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@
#include <android-base/properties.h>
#include <media/NdkCommon.h>
#include <media/VideoTrackTranscoder.h>
#include <utils/AndroidThreads.h>

using namespace AMediaFormatUtils;

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

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
    // 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.