set software codec prioirty to match MediaCodec looper
MediaCodec looper's prioirty is set in android_media_MediaCodec.cpp
(MediaCodec jni) to ANDROID_PRIORITY_VIDEO, not AUDIO. Setting sw
codec looper priority to AUDIO could starve client side if the sw
decoder is running ASAP.
bug: 73898805
test: android.video.cts.VideoEncoderDecoderTest,
YouTube VP9 / VP9 HDR playback
Change-Id: I3efa975b843976d7c2886c5a802241a1dfe2fa0f
diff --git a/media/libstagefright/omx/SimpleSoftOMXComponent.cpp b/media/libstagefright/omx/SimpleSoftOMXComponent.cpp
index d650224..55afe04 100644
--- a/media/libstagefright/omx/SimpleSoftOMXComponent.cpp
+++ b/media/libstagefright/omx/SimpleSoftOMXComponent.cpp
@@ -41,7 +41,7 @@
mLooper->start(
false, // runOnCallingThread
false, // canCallJava
- ANDROID_PRIORITY_AUDIO);
+ ANDROID_PRIORITY_VIDEO);
}
void SimpleSoftOMXComponent::prepareForDestruction() {