Skip to content

Commit fa7ea52

Browse files
copybara-githubshahdDaghash
authored andcommitted
Merge pull request #2477 from NoNews:detached_surface_vendors_workaround
PiperOrigin-RevId: 778900891 (cherry picked from commit 471075a)
1 parent 731c32e commit fa7ea52

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

RELEASENOTES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* DataSource:
1919
* Audio:
2020
* Video:
21+
* Extend detached surface workaround to "lenovo" and "motorola" devices
22+
([#2059](https://github.com/androidx/media/issues/2059)).
2123
* Text:
2224
* Add support for VobSub tracks in MP4 files
2325
([#2510](https://github.com/androidx/media/issues/2510)).

libraries/exoplayer/src/main/java/androidx/media3/exoplayer/mediacodec/MediaCodecInfo.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,8 @@ private static boolean needsProfileExcludedWorkaround(String mimeType, int profi
941941
private static boolean needsDetachedSurfaceUnsupportedWorkaround() {
942942
return Build.MANUFACTURER.equals("Xiaomi")
943943
|| Build.MANUFACTURER.equals("OPPO")
944-
|| Build.MANUFACTURER.equals("realme");
944+
|| Build.MANUFACTURER.equals("realme")
945+
|| Build.MANUFACTURER.equals("motorola")
946+
|| Build.MANUFACTURER.equals("LENOVO");
945947
}
946948
}

0 commit comments

Comments
 (0)