Browse Source

bugfix: 解决进入播放逻辑后失败无法再播放情况

hexleo 5 years ago
parent
commit
d0ac5cb3ec

+ 1 - 0
Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/HardDecoder.kt

@@ -69,6 +69,7 @@ class HardDecoder(player: AnimPlayer) : Decoder(player), SurfaceTexture.OnFrameA
             }
         } catch (t: Throwable) {
             onFailed(Constant.REPORT_ERROR_TYPE_CREATE_RENDER, "${Constant.ERROR_MSG_CREATE_RENDER} e=$t")
+            release(null, null)
             return
         }