| 460 | } |
| 461 | |
| 462 | void VideoBackendAndroid::Player_Destroy(VideoBackendPlayer& player) |
| 463 | { |
| 464 | PROFILE_CPU(); |
| 465 | player.ReleaseResources(); |
| 466 | auto& playerAndroid = player.GetBackendState<VideoPlayerAndroid>(); |
| 467 | if (playerAndroid.VideoFormat) |
| 468 | AMediaFormat_delete(playerAndroid.VideoFormat); |
| 469 | if (playerAndroid.VideoCodec) |
| 470 | AMediaCodec_delete(playerAndroid.VideoCodec); |
| 471 | if (playerAndroid.AudioFormat) |
| 472 | AMediaFormat_delete(playerAndroid.AudioFormat); |
| 473 | if (playerAndroid.AudioCodec) |
| 474 | AMediaCodec_delete(playerAndroid.AudioCodec); |
| 475 | AMediaExtractor_delete(playerAndroid.Extractor); |
| 476 | Android::Players.Remove(&player); |
| 477 | player = VideoBackendPlayer(); |
| 478 | } |
| 479 | |
| 480 | void VideoBackendAndroid::Player_UpdateInfo(VideoBackendPlayer& player, const VideoBackendPlayerInfo& info) |
| 481 | { |
nothing calls this directly
no test coverage detected