Make sure to release the renderer before shutting down the hardware codec, qcom's hardware decoder will otherwise crash.
related-to-bug: 2387981
This commit is contained in:
@@ -218,6 +218,8 @@ void AwesomePlayer::reset() {
|
||||
void AwesomePlayer::reset_l() {
|
||||
cancelPlayerEvents();
|
||||
|
||||
mVideoRenderer.clear();
|
||||
|
||||
if (mLastVideoBuffer) {
|
||||
mLastVideoBuffer->release();
|
||||
mLastVideoBuffer = NULL;
|
||||
@@ -243,8 +245,6 @@ void AwesomePlayer::reset_l() {
|
||||
delete mAudioPlayer;
|
||||
mAudioPlayer = NULL;
|
||||
|
||||
mVideoRenderer.clear();
|
||||
|
||||
mDurationUs = -1;
|
||||
mFlags = 0;
|
||||
mVideoWidth = mVideoHeight = -1;
|
||||
|
||||
Reference in New Issue
Block a user