google / ExoPlayer

This project is deprecated and stale. The latest ExoPlayer code is available in https://github.com/androidx/media
https://developer.android.com/media/media3/exoplayer
Apache License 2.0
21.7k stars 6.02k forks source link

Amlogic platform play switch from Surface Texture to Surface view display at mistaken #10176

Open Wangjian0586 opened 2 years ago

Wangjian0586 commented 2 years ago

ExoPlayer Version

2.17.1

Devices that reproduce the issue

Ohm use Amlogic platfom use Android P

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

Play a video, in file list

Expected result

The video play ok.

Actual result

Sometimes the picture display mosaic.

Media

Dolby vision certification file can provide.

Bug Report

Wangjian0586 commented 2 years ago

Exoplayer will create a dummySurface use Surface Texture if do not use Surface when configCodec, After Surface have created will setSurfce with New SurfaceView, But amlogic omx do not support switch SurfaceTexture to SurfaceView after inited.

Wangjian0586 commented 2 years ago

I have add a pull it fixed it: https://github.com/google/ExoPlayer/pull/10178 pls help to review.