mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
Merge pull request #7003 from Bnyro/master
fix: MediaCodecRendererException when rotating screen
This commit is contained in:
commit
7889d603a6
@ -1490,6 +1490,9 @@ class PlayerFragment : Fragment(R.layout.fragment_player), OnlinePlayerOptions {
|
||||
|
||||
viewModel.isOrientationChangeInProgress = true
|
||||
|
||||
// detatch player view from player to stop surface rendering
|
||||
binding.player.player = null
|
||||
|
||||
if (::playerController.isInitialized) playerController.release()
|
||||
|
||||
activity?.recreate()
|
||||
|
Loading…
x
Reference in New Issue
Block a user